* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    min-height: 100%;
}


body {
    font-family: "Poppins", sans-serif;
}


.auth-body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top left,
            rgba(12, 113, 195, 0.22),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(6, 133, 165, 0.20),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #f4faff,
            #eaf5fb
        );

    color: #16324a;
}


.auth-page {
    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px 16px;
}


.auth-card {
    width: 100%;

    max-width: 470px;

    background:
        rgba(
            255,
            255,
            255,
            0.94
        );

    border:
        1px solid
        rgba(
            4,
            72,
            117,
            0.10
        );

    border-radius: 24px;

    padding: 34px;

    box-shadow:
        0 25px 70px
        rgba(
            4,
            72,
            117,
            0.14
        );
}


.register-card {
    max-width: 560px;
}


.auth-logo-wrap {
    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 18px;
}


.auth-logo {
    display: block;

    width: auto;

    height: auto;

    max-width: 210px;

    max-height: 90px;

    object-fit: contain;
}


.auth-heading {
    text-align: center;

    margin-bottom: 26px;
}


.auth-heading h1 {
    color: #044875;

    font-size: 27px;

    font-weight: 700;

    line-height: 1.3;

    margin-bottom: 7px;
}


.auth-heading p {
    color: #6c8293;

    font-size: 14px;
}


.login-role-selector {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;

    padding: 6px;

    margin-bottom: 24px;

    background: #eef7fb;

    border-radius: 14px;
}


.role-button {
    min-height: 48px;

    border: none;

    border-radius: 10px;

    background: transparent;

    color: #587386;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}


.role-button i {
    margin-right: 7px;
}


.role-button.active {
    background: #ffffff;

    color: #044875;

    box-shadow:
        0 5px 18px
        rgba(
            4,
            72,
            117,
            0.10
        );
}


.auth-message {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding: 13px 15px;

    margin-bottom: 20px;

    border-radius: 11px;

    font-size: 13px;

    line-height: 1.6;
}


.auth-message.error {
    color: #991b1b;

    background: #fee2e2;

    border:
        1px solid
        #fecaca;
}


.auth-message.success {
    color: #166534;

    background: #dcfce7;

    border:
        1px solid
        #bbf7d0;
}


.auth-form {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


.form-group {
    width: 100%;
}


.form-group label {
    display: block;

    color: #294b62;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 7px;
}


.input-wrapper {
    position: relative;

    display: flex;

    align-items: center;
}


.input-wrapper input {
    width: 100%;

    height: 50px;

    border:
        1px solid
        #d5e4ec;

    border-radius: 11px;

    background: #ffffff;

    color: #16324a;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    padding:
        0
        47px
        0
        44px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.input-wrapper input:focus {
    border-color: #0685a5;

    box-shadow:
        0 0 0 4px
        rgba(
            6,
            133,
            165,
            0.10
        );
}


.input-wrapper input::placeholder {
    color: #9babb5;
}


.input-icon {
    position: absolute;

    left: 16px;

    z-index: 2;

    color: #7b9aac;

    font-size: 14px;
}


.password-toggle {
    position: absolute;

    right: 7px;

    width: 38px;

    height: 38px;

    border: none;

    border-radius: 8px;

    background: transparent;

    color: #6b8798;

    cursor: pointer;
}


.password-toggle:hover {
    background: #edf7fb;

    color: #044875;
}


.auth-submit {
    width: 100%;

    min-height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-top: 4px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #044875,
            #0685a5
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 12px 28px
        rgba(
            4,
            72,
            117,
            0.20
        );

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.auth-submit:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 16px 32px
        rgba(
            4,
            72,
            117,
            0.25
        );
}


.register-link {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 6px;

    margin-top: 22px;

    color: #718796;

    font-size: 13px;
}


.register-link a {
    color: #0c71c3;

    font-weight: 600;

    text-decoration: none;
}


.register-link a:hover {
    text-decoration: underline;
}


@media (
    max-width: 600px
) {

    .auth-page {
        align-items: flex-start;

        padding:
            18px
            12px;
    }


    .auth-card {
        padding:
            26px
            18px;

        border-radius: 18px;
    }


    .auth-logo {
        max-width: 175px;

        max-height: 75px;
    }


    .auth-heading h1 {
        font-size: 23px;
    }


    .login-role-selector {
        gap: 6px;
    }


    .role-button {
        font-size: 13px;
    }


    .input-wrapper input {
        font-size: 16px;
    }

}