/*
|--------------------------------------------------------------------------
| Candidate Services Portal
|--------------------------------------------------------------------------
*/

:root {
    --primary: #005eb8;
    --primary-dark: #003087;
    --primary-deep: #00205b;

    --accent: #0072ce;

    --green: #007f3b;

    --text: #212b32;
    --muted: #4c6272;

    --border: #d8dde0;

    --background: #eef3f6;
    --white: #ffffff;

    --info-background: #e8f4fa;

    --shadow:
        0 22px 60px rgba(0, 48, 135, 0.13);

    --radius: 22px;
}


/*
|--------------------------------------------------------------------------
| Reset
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;

    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 85% 10%,
            rgba(0, 114, 206, 0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(0, 94, 184, 0.07),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #f8fbfd 0%,
            var(--background) 100%
        );

    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}


/*
|--------------------------------------------------------------------------
| Layout
|--------------------------------------------------------------------------
*/

.page-shell {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 55px 20px 35px;
}


/*
|--------------------------------------------------------------------------
| Portal Card
|--------------------------------------------------------------------------
*/

.portal-card {
    position: relative;

    width: 100%;
    max-width: 620px;

    padding: 44px;

    background: var(--white);

    border:
        1px solid
        rgba(0, 48, 135, 0.10);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;
}

.portal-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 6px;

    background:
        linear-gradient(
            90deg,
            var(--primary-dark),
            var(--primary),
            var(--accent)
        );
}


/*
|--------------------------------------------------------------------------
| Brand
|--------------------------------------------------------------------------
*/

.brand {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 38px;
}

.brand-icon {
    width: 50px;
    height: 50px;

    flex:
        0 0
        50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--accent)
        );

    color: var(--white);

    font-size: 31px;
    font-weight: 300;

    box-shadow:
        0 8px 20px
        rgba(0, 94, 184, 0.20);
}

.brand-text {
    display: flex;

    flex-direction: column;

    gap: 2px;
}

.brand-small {
    color: var(--muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.09em;

    text-transform: uppercase;
}

.brand-text strong {
    color: var(--primary-deep);

    font-size: 19px;
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.portal-header {
    text-align: center;

    margin-bottom: 31px;
}

.status-badge {
    display: inline-flex;

    align-items: center;

    padding:
        7px
        13px;

    margin-bottom: 17px;

    border-radius: 100px;

    background:
        rgba(0, 94, 184, 0.08);

    color: var(--primary);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}

.portal-header h1 {
    margin:
        0 0
        13px;

    color: var(--primary-deep);

    font-size:
        clamp(
            29px,
            5vw,
            40px
        );

    line-height: 1.15;

    letter-spacing: -0.025em;
}

.portal-header p {
    max-width: 500px;

    margin:
        0 auto;

    color: var(--muted);

    font-size: 15px;

    line-height: 1.7;
}


/*
|--------------------------------------------------------------------------
| Access Panel
|--------------------------------------------------------------------------
*/

.access-panel {
    padding: 27px;

    border:
        1px solid
        var(--border);

    border-radius: 15px;

    background:
        #fbfcfd;
}

.panel-heading {
    margin-bottom: 23px;
}

.panel-heading h2 {
    margin:
        0 0
        7px;

    color: var(--primary-deep);

    font-size: 20px;
}

.panel-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.55;
}


/*
|--------------------------------------------------------------------------
| Fields
|--------------------------------------------------------------------------
*/

.field {
    margin-bottom: 19px;
}

.field label {
    display: block;

    margin-bottom: 8px;

    color: var(--text);

    font-size: 14px;

    font-weight: 700;
}

.field input {
    display: block;

    width: 100%;

    min-height: 52px;

    padding:
        12px
        14px;

    border:
        2px solid
        var(--border);

    border-radius: 8px;

    background: var(--white);

    color: var(--text);

    font-size: 16px;

    outline: none;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.field input::placeholder {
    color: #768692;
}

.field input:hover {
    border-color: #aab5bc;
}

.field input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(0, 94, 184, 0.11);
}


/*
|--------------------------------------------------------------------------
| Access Button
|--------------------------------------------------------------------------
*/

.access-button {
    width: 100%;

    min-height: 54px;

    margin-top: 3px;

    padding:
        13px
        20px;

    border: 0;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    color: var(--white);

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 20px
        rgba(0, 48, 135, 0.18);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.access-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 11px 25px
        rgba(0, 48, 135, 0.24);
}

.access-button:active {
    transform: translateY(0);
}

.access-button:focus-visible {
    outline:
        3px solid
        rgba(0, 94, 184, 0.25);

    outline-offset: 3px;
}


/*
|--------------------------------------------------------------------------
| Portal Message
|--------------------------------------------------------------------------
*/

.portal-message {
    display: none;

    margin-top: 17px;

    padding: 14px 15px;

    border:
        1px solid
        rgba(0, 94, 184, 0.20);

    border-radius: 8px;

    background:
        var(--info-background);

    color:
        var(--primary-deep);

    font-size: 13px;

    font-weight: 600;

    line-height: 1.55;
}

.portal-message.show {
    display: block;
}


/*
|--------------------------------------------------------------------------
| Information
|--------------------------------------------------------------------------
*/

.information-box {
    display: flex;

    gap: 13px;

    margin-top: 23px;

    padding: 18px;

    border-radius: 12px;

    background:
        var(--info-background);

    border:
        1px solid
        rgba(0, 94, 184, 0.12);
}

.info-icon {
    width: 27px;
    height: 27px;

    flex:
        0 0
        27px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        var(--primary);

    color:
        var(--white);

    font-family:
        Georgia,
        serif;

    font-size: 15px;

    font-weight: 700;
}

.information-box strong {
    display: block;

    margin-bottom: 5px;

    color:
        var(--primary-deep);

    font-size: 14px;
}

.information-box p {
    margin: 0;

    color:
        var(--muted);

    font-size: 13px;

    line-height: 1.6;
}


/*
|--------------------------------------------------------------------------
| Security
|--------------------------------------------------------------------------
*/

.security-row {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-top: 23px;

    padding-top: 21px;

    border-top:
        1px solid
        var(--border);
}

.security-check {
    width: 23px;
    height: 23px;

    flex:
        0 0
        23px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(0, 127, 59, 0.09);

    color:
        var(--green);

    font-size: 12px;

    font-weight: 800;
}

.security-row p {
    margin: 1px 0 0;

    color:
        var(--muted);

    font-size: 12px;

    line-height: 1.55;
}


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.footer {
    padding:
        0
        20px
        28px;

    text-align: center;
}

.footer p {
    margin:
        0 0
        4px;

    color:
        var(--muted);

    font-size: 12px;
}

.footer-secondary {
    opacity: 0.75;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 640px) {

    .main-content {
        align-items: flex-start;

        padding:
            24px
            14px;
    }

    .portal-card {
        padding:
            34px
            20px;

        border-radius: 16px;
    }

    .brand {
        margin-bottom: 30px;
    }

    .portal-header h1 {
        font-size: 30px;
    }

    .access-panel {
        padding:
            22px
            17px;
    }

    /*
     * Keep mobile input text at least 16px.
     * This helps prevent automatic zoom on iOS.
     */

    .field input {
        font-size: 16px;
    }

}


/*
|--------------------------------------------------------------------------
| Reduced Motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;

        transition: none !important;

        scroll-behavior: auto !important;
    }

}