#login-form .block-title,
#register-form .block-title,
#reset-form .block-title {
    flex: 1 1 auto;
    min-height: 1.75rem;
    margin: 0;
    line-height: 1.75;
    font-size: 1.5rem !important;
}

body {
    position: relative;
    min-height: 100vh;
    background-color: #f6f7fb;
    background-image: none !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 8% 12%, rgba(134, 180, 255, 0.28) 0, transparent 45%),
        radial-gradient(circle at 92% 82%, rgba(124, 238, 207, 0.24) 0, transparent 40%),
        linear-gradient(165deg, rgba(246, 247, 251, 0.9) 10%, rgba(237, 242, 250, 0.7) 85%);
    z-index: -1;
}

#page-container {
    min-height: 100vh;
}

.auth-screen {
    min-height: 100vh;
    padding: 28px 16px;
    display: flex;
    align-items: center;
}

.auth-layout {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: stretch;
}

.auth-showcase {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid #dfebf8;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(229, 239, 255, 0.75));
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    padding: 34px 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-showcase::before {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.2) 0, rgba(29, 78, 216, 0.02) 68%, transparent 100%);
}

.auth-showcase::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    left: -100px;
    bottom: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.14) 0, rgba(34, 197, 94, 0.03) 70%, transparent 100%);
}

.auth-showcase > * {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0f172a;
    text-decoration: none;
}

.auth-brand:hover {
    color: #1d4ed8;
}

.auth-brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.2);
}

.auth-brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.auth-badge {
    width: fit-content;
    font-size: 12px;
    font-weight: 700;
    color: #1d4ed8;
    border-radius: 999px;
    border: 1px solid #c7dbff;
    background: #ecf4ff;
    padding: 6px 12px;
}

.auth-showcase-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.25;
    color: #0f172a;
}

.auth-showcase-text {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.7;
    color: #4b5563;
}

.auth-showcase-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.auth-showcase-list li {
    border-radius: 14px;
    border: 1px solid #dce8f8;
    background: rgba(255, 255, 255, 0.74);
    color: #334155;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 10px 14px;
}

.auth-showcase-links {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-showcase-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.auth-showcase-links a:hover {
    color: #1e40af;
    transform: translateY(-1px);
}

.auth-card {
    border-radius: 28px;
    border: 1px solid #dce6f3;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.13);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.auth-card-header {
    padding: 30px 30px 14px;
}

.auth-title {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.3;
    color: #0f172a;
}

.auth-subtitle {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 0.94rem;
}

.auth-card-body {
    padding: 12px 30px 24px;
}

.auth-form .form-floating {
    margin-bottom: 16px;
}

.auth-form .form-floating > .form-control {
    height: 56px;
    border-radius: 14px;
    border: 1px solid #d7e3f1;
    background: #f8fafd;
    color: #0f172a;
    box-shadow: none;
}

.auth-form .form-floating > .form-control:focus {
    border-color: #7aa8ff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12);
}

.auth-form .form-floating > label {
    color: #64748b;
    padding-left: 14px;
}

.auth-form .form-check {
    min-height: 1.3rem;
}

.auth-form .form-check-input {
    border-color: #bfd2eb;
}

.auth-form .form-check-input:checked {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

.auth-form .form-check-label {
    color: #64748b;
    font-weight: 500;
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
    margin-bottom: 6px;
}

.auth-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #1d4ed8;
}

.auth-submit {
    min-height: 54px;
    border: 0;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
    box-shadow: 0 14px 28px rgba(29, 78, 216, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    transform: translateY(-1px);
    filter: brightness(1.01);
    color: #fff;
    box-shadow: 0 16px 28px rgba(29, 78, 216, 0.33);
}

.auth-submit:disabled {
    box-shadow: none;
}

.auth-code-btn {
    width: 100%;
    min-height: 56px;
    border-radius: 14px;
    border: 1px solid #bfd2eb;
    background: #eef5ff;
    color: #1d4ed8;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.auth-code-btn:hover {
    background: #e4efff;
    border-color: #a8c3ec;
    transform: translateY(-1px);
}

.auth-divider {
    margin: 18px 0 0;
    border-top: 1px solid #e5edf8;
}

.auth-card-footer {
    padding: 16px 30px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(246, 249, 253, 0.7);
}

.auth-card-footer a {
    text-decoration: none;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-card-footer a:hover {
    color: #1d4ed8;
}

.auth-inline-link {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 700;
}

.auth-inline-link:hover {
    color: #1e3a8a;
}

.auth-form .auth-terms {
    margin-top: 2px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafd;
    border: 1px solid #dde8f7;
}

.auth-form .auth-terms .form-check-label {
    color: #475569;
    line-height: 1.65;
}

.auth-terms .auth-inline-link {
    font-weight: 600;
}

.auth-form .row.auth-code-row {
    margin-bottom: 16px;
}

.auth-form .row.auth-code-row > div {
    margin-top: 0;
}

@media (max-width: 991.98px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-showcase {
        padding: 28px 24px;
    }

    .auth-showcase-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 575.98px) {
    .auth-screen {
        padding: 12px;
        align-items: flex-start;
    }

    .auth-showcase {
        border-radius: 22px;
        padding: 22px 18px;
    }

    .auth-card {
        border-radius: 22px;
    }

    .auth-card-header {
        padding: 24px 18px 10px;
    }

    .auth-card-body {
        padding: 10px 18px 20px;
    }

    .auth-card-footer {
        padding: 14px 18px 18px;
    }

    .auth-form .row.auth-code-row > .col-sm-4,
    .auth-form .row.auth-code-row > .col-4,
    .auth-form .row.auth-code-row > .col-sm-8,
    .auth-form .row.auth-code-row > .col-8 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}
