@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700;800;900&display=swap');

html {
    min-height: 100%;
    background: #1f4379;
}

body.index-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 6%, rgba(255, 138, 0, 0.26), transparent 20%),
        radial-gradient(circle at 22% 18%, rgba(255, 138, 0, 0.16), transparent 26%),
        linear-gradient(135deg, #0f5fa8 0%, #087dcc 45%, #045a9a 100%);
    font-family: 'Roboto', Arial, sans-serif;
}

.auth-page {
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px 16px 28px;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    height: 104px;
    margin-bottom: 22px;
    padding: 0;
    background: #ffffff;
    border: 3px solid rgba(255, 138, 0, 0.36);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18), 0 0 0 8px rgba(255, 138, 0, 0.08);
    overflow: hidden;
}

.auth-brand img {
    display: block;
    width: 218px;
    max-width: none;
    height: auto;
    transform: translateY(3px);
}

.auth-card {
    width: min(100%, 470px);
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 18px;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

.auth-card::before {
    content: "";
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #ff8a00, #f26a00 38%, #087dcc);
}

.auth-card-body {
    padding: 36px 30px 32px;
}

.auth-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 22px;
    color: #093f7d;
    font-size: 1.55rem;
    font-weight: 800;
}

.auth-title i {
    color: #ff8a00;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 26px;
}

.auth-tab,
.auth-outline-btn,
.auth-submit {
    min-height: 42px;
    border-radius: 6px;
    font-weight: 700;
}

.auth-tab {
    min-width: 116px;
    min-height: 38px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: #edf3f8;
    color: #0073cf;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.auth-tab.active,
.auth-tab:hover {
    background: linear-gradient(135deg, #ff8a00, #f26a00);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(242, 106, 0, 0.24);
}

.auth-tab:hover {
    transform: translateY(-1px);
}

.auth-field {
    margin-bottom: 19px;
}

.auth-field label {
    display: block;
    margin-bottom: 9px;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-field .form-control,
.auth-field .input-group-text,
.auth-field .btn {
    min-height: 46px;
}

.auth-field .form-control {
    border-color: #d6e0ea;
    border-radius: 7px;
    color: #1f2937;
    font-size: 0.98rem;
    margin-bottom: 0 !important;
}

.auth-field > .form-control:focus,
.auth-card .input-group:focus-within {
    border-color: #ff8a00;
    box-shadow: 0 0 0 0.16rem rgba(255, 138, 0, 0.16);
}

.auth-card .input-group {
    flex-wrap: nowrap;
    align-items: stretch;
    min-height: 46px;
    overflow: hidden;
    border: 1px solid #d6e0ea;
    border-radius: 7px;
    background: #ffffff;
}

.auth-card .input-group > .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    height: 46px;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.auth-card .input-group > .input-group-text,
.auth-card .input-group > .btn {
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-height: 46px;
    height: 46px;
    padding: 0;
    margin: 0 !important;
    color: #5f6b7a;
    background: #ffffff !important;
    border: 0 !important;
    line-height: 1;
    vertical-align: middle;
}

.auth-card .input-group:focus-within > .input-group-text,
.auth-card .input-group:focus-within > .btn {
    color: #f26a00;
}

.auth-card .input-group > .input-group-text i,
.auth-card .input-group > .btn i {
    display: block;
    line-height: 1;
}

.auth-outline-btn {
    width: 100%;
    color: #f26a00;
    border-color: #ff8a00;
    border-radius: 999px;
}

.auth-outline-btn:hover {
    background: #ff8a00;
    border-color: #ff8a00;
    color: #ffffff;
}

.auth-help {
    display: block;
    margin-top: -12px;
    margin-bottom: 16px;
    font-weight: 600;
}

.auth-submit {
    width: 100%;
    min-height: 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8a00 0%, #f26a00 100%);
    border-color: #f26a00;
    box-shadow: 0 12px 24px rgba(242, 106, 0, 0.24);
}

.auth-submit:hover {
    background: #d65f00;
    border-color: #d65f00;
}

.auth-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
    text-align: center;
}

.auth-links.single-link {
    grid-template-columns: 1fr;
}

.auth-links a {
    color: #006fc8;
    font-weight: 700;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.auth-back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 26px;
    padding: 0 20px;
    border-radius: 7px;
    background: #ffffff;
    color: #075d9f;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

.auth-back-home::before {
    content: "\f060";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    color: #ff8a00;
}

.auth-back-home:hover {
    color: #f26a00;
}

@media (max-width: 575px) {
    .auth-page {
        align-items: flex-start;
        padding: 22px 14px 96px;
        justify-content: flex-start;
    }

    .auth-brand {
        align-self: center;
        width: 188px;
        height: 92px;
        margin-bottom: 16px;
    }

    .auth-brand img {
        width: 196px;
    }

    .auth-card-body {
        padding: 28px 18px 26px;
    }

    .auth-title {
        font-size: 1.45rem;
    }

    .auth-tabs {
        gap: 8px;
    }

    .auth-tab {
        min-width: 0;
        flex: 1 1 0;
        padding: 0 10px;
        font-size: 0.88rem;
    }

    .auth-back-home {
        display: none;
    }
}
