﻿/* ========================================================================== *
 *                            GLOBAL STYLES                                    *
 * ========================================================================== */

/* full‐page dark navy background */
html, body {
    height: 100%;
    margin: 0;
    background-color: rgba(15, 23, 42, 1); /* #0F172A */
}

/* ========================================================================= *
 *                               Register                                    *
 * ========================================================================= */

.register_main {
    background: var(--Basics-Black, rgba(15, 23, 42, 1));
}

.main_block {
    display: grid;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.main_container {
    background-color: rgb(236, 239, 255);
    /* margin-top removed—centering now handled globally */
    text-align: center;
    border-radius: 0.5rem;
}

    .main_container h2 {
        font-weight: 600;
        line-height: 41.6px;
        text-align: left;
    }

.main_container_body {
    padding: 30px;
}

    .main_container_body p {
        font-size: 14px;
        font-weight: 400;
        line-height: 24px;
        text-align: left;
    }

.logo {
    text-align: center;
}

/* ========================================================================= *
 *                              EmailStep                                    *
 * ========================================================================= */

/* 1) Override Bootstrap’s container for this page so it doesn’t constrain us */
.container > main > .register_main.main_block {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 2) Full‐viewport wrapper & centering (flex for simplicity) */
.register_main.main_block {
    display: flex;
    align-items: center; /* vertical centering */
    justify-content: center; /* horizontal centering */
    min-height: 100vh; /* fill entire viewport */
    padding: 1rem; /* gutter on small devices */
    flex-direction:column;
}

/* 3) The card itself */
.main_container {
    background-color: #EEF2FF; /* very light periwinkle */
    border-radius: 0.75rem; /* round corners */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    width: clamp(320px, 90%, 460px); /* ← fluid: min 320px, ideal 90% of screen, max 460px */
    margin: 0 auto;
    text-align: left;
}

    /* Title + subtitle */
    .main_container h2 {
        font-size: 2rem;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 0.5rem;
        color: #111827;
    }

.main_container_body > p {
    font-size: 1rem;
    font-weight: 400;
    color: #475569;
    margin-bottom: 1.5rem;
}

/* Validation summary (error box) */
.alert-danger {
    background-color: #FDECEA; /* pale red */
    border: none;
    color: #C53030; /* deep red text */
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

    .alert-danger ul {
        margin: 0;
        padding-left: 1.2rem;
    }

    .alert-danger li {
        margin: 0;
        line-height: 1.4;
    }

/* Email label + input */
.email_input p {
    font-family: Avenir, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #334155;
}

.email_input input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #CBD5E1;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #111827;
}

/* Continue button */
.button_div {
    text-align: right;
    margin-top: 1rem;
}

.continue {
    background-color: rgba(79, 77, 131, 1);
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    width: 115px;
    height: 48px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
}

    .continue:hover {
        background-color: rgba(64, 62, 103, 1);
    }

/* Footer links inside the card */
.main_container_footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

    .main_container_footer a {
        font-size: 0.875rem;
        color: rgba(79, 77, 131, 1);
        text-decoration: none;
    }

        .main_container_footer a:hover {
            text-decoration: underline;
        }

/* Mobile tweaks (≤576px) */
@media (max-width: 576px) {
    .register_main.main_block {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .main_container {
        border-radius: 0.5rem; /* slightly smaller rounding */
    }
}

/* ========================================================================= *
 *                            PasswordStep                                   *
 * ========================================================================= */

.pwd {
    display: flex;
    flex-direction: row;
    gap: 200px;
}

    .pwd p {
        font-weight: 600;
        margin: 0;
    }

/* ========================================================================= *
 *                           TwoFactorStep                                   *
 * ========================================================================= */


/* countdown + resend link */
.countdown {
    font-size: 0.875rem;
    color: #475569;
}

    .countdown .resend-link {
        margin-left: 0.5rem;
        color: rgba(79,77,131,1);
        text-decoration: none;
    }

        .countdown .resend-link:hover {
            text-decoration: underline;
        }

/* six individual code inputs */
.code-inputs {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

    .code-inputs input {
        width: 3rem;
        height: 3rem;
        text-align: center;
        font-size: 1.25rem;
        border: 1px solid #CBD5E1;
        border-radius: 0.5rem;
        background-color: #fff;
        color: #111827;
    }

/* ========================================================================= *
 *                               Footer                                      *
 * ========================================================================= */

.footer {
    text-align: center;
    padding: 10px;
    border-top: 1px solid rgba(116, 114, 175, 1);
}

    .footer p {
        color: white;
        margin: 0 5px;
        text-align: justify;
    }


/* ========================================================================= *
 *                               ConfirmEmployer                             *
 * ========================================================================= */


/* Optional: tighter checkbox + spacing like in screenshot */
.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    margin-top: 0.15rem;
}

/* cancel link */
.cancel-link {
    font-size: 1rem;
    color: #4f4d83;
    text-decoration: underline;
}

    .cancel-link:hover {
        color: #37356a;
        text-decoration: none;
    }

.continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.main_container.wide {
    width: clamp(400px, 95%, 640px); /* allows expansion but caps max width */
}
