/* Reset & Global Settings */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    color: #1e293b;
}

.space {
    width: 100%;
    height: 20px;
    overflow: hidden;
}

.register-wrapper {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    /* Centers the block within its container */
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    /* Adds safe spacing on mobile screens */
}


/* Card Styling */

.register-card {
    width: 90%;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    text-align: right;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f2b5c;
    text-align: center;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 1.75rem;
}


/* Form Layout */

.register-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}


/* Side-by-Side Password Fields */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}


/* Input Fields */

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 0.7rem 2.25rem 0.7rem 0.875rem;
    font-size: 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #ffffff;
    color: #0f172a;
    outline: none;
    transition: all 0.2s ease;
}

.input-wrapper input.text-right {
    text-align: right;
}

.input-wrapper input::placeholder {
    color: #94a3b8;
}

.input-wrapper input:focus {
    border-color: #0f2b5c;
    box-shadow: 0 0 0 3px rgba(15, 43, 92, 0.12);
}

.input-icon {
    position: absolute;
    right: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    pointer-events: none;
}


/* Checkbox Section */

.checkbox-group {
    margin: 0.5rem 0 1.5rem 0;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-right: 1.75rem;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    right: 0;
    top: 2px;
    height: 18px;
    width: 18px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.custom-checkbox:hover input~.checkmark {
    background-color: #f8fafc;
}

.custom-checkbox input:checked~.checkmark {
    background-color: #0f2b5c;
    border-color: #0f2b5c;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked~.checkmark:after {
    display: block;
}

.terms-text {
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.5;
}

.terms-text a {
    color: #0f2b5c;
    font-weight: 600;
    text-decoration: underline;
}


/* Submit Button */

.submit-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #0f2b5c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.submit-btn:hover {
    background-color: #0a1e42;
}

.submit-btn:active {
    transform: scale(0.99);
}


/* Footer Link */

.card-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

.card-footer a {
    color: #0f2b5c;
    text-decoration: none;
    font-weight: 700;
    margin-right: 0.25rem;
}

.card-footer a:hover {
    text-decoration: underline;
}


/* Responsive adjust for small mobile screens */

@media (max-width: 400px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}