/* =========================================================
   AUTH PAGE
   СВФУ УСЛУГИ
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;

    font-family: "Roboto", Arial, sans-serif;

    background-color: #eeeeee;

    color: #222222;

    overflow-x: hidden;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}


/* =========================================================
   MAIN PAGE
   ========================================================= */

.auth-page {
    min-height: 100vh;

    display: grid;

    grid-template-columns: 1fr 1fr;
}


/* =========================================================
   LEFT INFORMATION PANEL
   ========================================================= */

.auth-info {
    min-height: 100vh;

    padding: 38px 55px;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            145deg,
            #09304a 0%,
            #0d4562 55%,
            #155a7a 100%
        );

    color: #ffffff;

    position: relative;

    overflow: hidden;
}

.auth-info::before {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    right: -220px;
    bottom: -220px;

    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.045);
}

.auth-info::after {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    left: -130px;
    top: 35%;

    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.035);
}


/* =========================================================
   LOGO
   ========================================================= */

.auth-logo {
    position: relative;
    z-index: 2;

    width: fit-content;

    color: #ffffff;

    text-decoration: none;

    font-size: 1.35rem;
    font-weight: 700;
}

.auth-info-content {
    width: min(540px, 100%);

    margin: auto 0;

    position: relative;
    z-index: 2;
}


/* =========================================================
   LABEL
   ========================================================= */

.auth-label {
    display: inline-flex;

    margin-bottom: 18px;

    padding: 7px 12px;

    border: 1px solid rgba(255, 255, 255, 0.2);

    border-radius: 20px;

    background-color: rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.9);

    font-size: 0.76rem;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.07em;
}


/* =========================================================
   INFO TITLE
   ========================================================= */

.auth-info-content h1 {
    margin-bottom: 20px;

    font-size: clamp(2.1rem, 4vw, 3.5rem);

    line-height: 1.12;

    font-weight: 700;
}

.auth-info-content > p {
    max-width: 510px;

    margin-bottom: 35px;

    color: rgba(255, 255, 255, 0.76);

    font-size: 0.98rem;

    line-height: 1.7;
}


/* =========================================================
   FEATURES
   ========================================================= */

.auth-features {
    display: flex;
    flex-direction: column;

    gap: 17px;
}

.auth-feature {
    display: flex;
    align-items: center;

    gap: 13px;
}

.feature-icon {
    width: 43px;
    height: 43px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background-color: rgba(255, 255, 255, 0.1);

    color: #ffffff;

    font-size: 0.95rem;
}

.auth-feature div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.auth-feature strong {
    font-size: 0.88rem;
    font-weight: 600;
}

.auth-feature div span {
    color: rgba(255, 255, 255, 0.63);

    font-size: 0.76rem;
}


/* =========================================================
   INFO FOOTER
   ========================================================= */

.auth-info-footer {
    position: relative;
    z-index: 2;

    color: rgba(255, 255, 255, 0.5);

    font-size: 0.74rem;
}


/* =========================================================
   RIGHT FORM AREA
   ========================================================= */

.auth-form-wrapper {
    min-height: 100vh;

    padding: 45px 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #f5f6f7;
}

.auth-form-container {
    width: min(455px, 100%);
}


/* =========================================================
   MOBILE LOGO
   ========================================================= */

.mobile-logo {
    display: none;

    margin-bottom: 25px;

    color: #09304a;

    text-decoration: none;

    font-size: 1.2rem;
    font-weight: 700;
}


/* =========================================================
   FORM HEADER
   ========================================================= */

.auth-header {
    margin-bottom: 27px;
}

.auth-header h2 {
    margin-bottom: 7px;

    color: #09304a;

    font-size: 1.75rem;
    font-weight: 700;
}

.auth-header p {
    color: #748087;

    font-size: 0.88rem;
}


/* =========================================================
   TABS
   ========================================================= */

.auth-tabs {
    height: 48px;

    margin-bottom: 25px;

    padding: 4px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    background-color: #e8edef;

    border-radius: 10px;
}

.auth-tab {
    border: none;

    border-radius: 8px;

    background-color: transparent;

    color: #6e7a81;

    font-size: 0.86rem;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-tab.active {
    background-color: #ffffff;

    color: #09304a;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   FLASH MESSAGES
   ========================================================= */

.flash-messages {
    margin-bottom: 20px;

    display: flex;
    flex-direction: column;

    gap: 8px;
}

.flash-message {
    min-height: 43px;

    padding: 9px 12px;

    display: flex;
    align-items: center;

    gap: 9px;

    border-radius: 9px;

    font-size: 0.82rem;
}

.flash-message.success {
    background-color: #e8f6ed;
    color: #24713f;
}

.flash-message.danger {
    background-color: #fdeceb;
    color: #b72f2a;
}

.flash-message.warning {
    background-color: #fff6df;
    color: #8a6711;
}

.flash-message.info {
    background-color: #eaf3f8;
    color: #155a7a;
}


/* =========================================================
   FORMS
   ========================================================= */

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}


/* =========================================================
   FORM GROUP
   ========================================================= */

.form-group {
    margin-bottom: 17px;
}

.form-group > label,
.form-label-row label {
    display: block;

    margin-bottom: 7px;

    color: #35434b;

    font-size: 0.8rem;
    font-weight: 600;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.form-label-row label {
    margin-bottom: 7px;
}


/* =========================================================
   INPUT
   ========================================================= */

.input-wrapper {
    height: 48px;

    display: flex;
    align-items: center;

    border: 1px solid #d8dfe3;

    border-radius: 9px;

    background-color: #ffffff;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: #155a7a;

    box-shadow:
        0 0 0 3px rgba(21, 90, 122, 0.1);
}

.input-wrapper > i:first-child {
    width: 45px;

    flex: 0 0 auto;

    text-align: center;

    color: #819099;

    font-size: 0.85rem;
}

.input-wrapper input {
    width: 100%;
    height: 100%;

    padding: 0 8px 0 0;

    border: none;
    outline: none;

    background: transparent;

    color: #26343c;

    font-size: 0.86rem;
}

.input-wrapper input::placeholder {
    color: #a2adb3;
}


/* =========================================================
   PASSWORD TOGGLE
   ========================================================= */

.password-toggle {
    width: 42px;
    height: 100%;

    flex: 0 0 auto;

    border: none;

    background: transparent;

    color: #8a969c;

    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #155a7a;
}


/* =========================================================
   FORGOT PASSWORD
   ========================================================= */

.forgot-password {
    margin-bottom: 7px;

    color: #155a7a;

    text-decoration: none;

    font-size: 0.75rem;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}


/* =========================================================
   REMEMBER
   ========================================================= */

.remember-row {
    margin: 2px 0 20px;
}


/* =========================================================
   CHECKBOX
   ========================================================= */

.checkbox-label {
    display: flex;
    align-items: center;

    gap: 8px;

    color: #66737a;

    font-size: 0.77rem;

    cursor: pointer;
}

.checkbox-label input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}

.custom-checkbox {
    width: 17px;
    height: 17px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #cbd4d9;

    border-radius: 4px;

    background-color: #ffffff;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.checkbox-label input:checked + .custom-checkbox {
    border-color: #09304a;

    background-color: #09304a;
}

.checkbox-label input:checked + .custom-checkbox::after {
    content: "✓";

    color: #ffffff;

    font-size: 0.68rem;
    font-weight: 700;
}


/* =========================================================
   TERMS
   ========================================================= */

.terms-checkbox {
    align-items: flex-start;

    margin: 3px 0 18px;

    line-height: 1.45;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.auth-submit {
    width: 100%;
    height: 49px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    border: none;

    border-radius: 9px;

    background-color: #09304a;

    color: #ffffff;

    font-size: 0.88rem;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-submit:hover {
    background-color: #155a7a;

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(9, 48, 74, 0.2);
}

.auth-submit i {
    font-size: 0.76rem;

    transition: transform 0.2s ease;
}

.auth-submit:hover i {
    transform: translateX(3px);
}


/* =========================================================
   BACK HOME
   ========================================================= */

.back-home {
    margin-top: 25px;

    text-align: center;
}

.back-home a {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    color: #718089;

    text-decoration: none;

    font-size: 0.78rem;

    transition: color 0.2s ease;
}

.back-home a:hover {
    color: #155a7a;
}


/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 900px) {

    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-info {
        display: none;
    }

    .auth-form-wrapper {
        min-height: 100vh;

        padding: 35px 25px;
    }

    .mobile-logo {
        display: block;
    }
}


/* =========================================================
   PHONES
   ========================================================= */

@media (max-width: 520px) {

    .auth-form-wrapper {
        padding: 25px 17px;
    }

    .auth-form-container {
        width: 100%;
    }

    .auth-header {
        margin-bottom: 22px;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }

    .auth-header p {
        font-size: 0.82rem;
    }

    .auth-tabs {
        margin-bottom: 20px;
    }

    .input-wrapper {
        height: 46px;
    }

    .auth-submit {
        height: 47px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 360px) {

    .auth-form-wrapper {
        padding: 20px 12px;
    }

    .auth-header h2 {
        font-size: 1.35rem;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .checkbox-label {
        font-size: 0.72rem;
    }
}