/* ============================================================
   auth.css — shared styles for all antidotum auth pages
   Covers: login, register, set_password, password_reset_request,
           logout, password_reset_success
   ============================================================ */

/* ----------------------------------------------------------
   Login
   ---------------------------------------------------------- */
.login-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-card {
    border-radius: 1rem !important;
    box-shadow: 0 4px 20px rgba(67, 175, 175, 0.15) !important;
}

.login-card .form-control {
    border-radius: 0.5rem !important;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.login-card .form-control:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(67, 175, 175, 0.15) !important;
}

.login-card h1 {
    color: var(--bs-darker);
}

.login-card a {
    color: var(--bs-primary);
    transition: color 0.2s ease;
}

.login-card a:hover {
    color: var(--bs-darker);
}

/* ----------------------------------------------------------
   Register
   ---------------------------------------------------------- */
.register-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.register-card {
    border-radius: 1rem !important;
    box-shadow: 0 4px 20px rgba(67, 175, 175, 0.15) !important;
}

.register-card .form-control {
    border-radius: 0.5rem !important;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.register-card .form-control:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(67, 175, 175, 0.15) !important;
}

.register-card h1 {
    color: var(--bs-darker);
}

.register-card a {
    color: var(--bs-primary);
    transition: color 0.2s ease;
}

.register-card a:hover {
    color: var(--bs-darker);
}

/* ----------------------------------------------------------
   Set Password (password reset confirmation)
   ---------------------------------------------------------- */
.set-password-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.set-password-card {
    border-radius: 1rem !important;
    box-shadow: 0 4px 20px rgba(67, 175, 175, 0.15) !important;
}

.set-password-card .form-control {
    border-radius: 0.5rem !important;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.set-password-card .form-control:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(67, 175, 175, 0.15) !important;
}

.set-password-card h1 {
    color: var(--bs-darker);
}

.set-password-card a {
    color: var(--bs-primary);
    transition: color 0.2s ease;
}

.set-password-card a:hover {
    color: var(--bs-darker);
}

.password-requirements {
    background-color: rgba(67, 175, 175, 0.08);
    border-left: 4px solid var(--bs-primary);
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 0.5rem;
}

.password-requirements h3 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    color: var(--bs-darker);
}

.password-requirements ul {
    margin: 0;
    padding-left: 20px;
    color: #6c757d;
    font-size: 0.85rem;
}

.password-requirements li {
    margin-bottom: 4px;
}

/* Hide Django's default help text since we have custom requirements */
.helptext {
    display: none;
}

/* ----------------------------------------------------------
   Password Reset Request
   ---------------------------------------------------------- */
.password-reset-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.password-reset-card {
    border-radius: 1rem !important;
    box-shadow: 0 4px 20px rgba(67, 175, 175, 0.15) !important;
}

.password-reset-card .form-control {
    border-radius: 0.5rem !important;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.password-reset-card .form-control:focus {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(67, 175, 175, 0.15) !important;
}

.password-reset-card h1 {
    color: var(--bs-darker);
}

.password-reset-card a {
    color: var(--bs-primary);
    transition: color 0.2s ease;
}

.password-reset-card a:hover {
    color: var(--bs-darker);
}

/* hCaptcha styling fixes */
.password-reset-card .hcaptcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    min-height: 120px;
}

.password-reset-card .h-captcha {
    margin: 0 auto !important;
}

.password-reset-card .hcaptcha-info {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.4;
}

/* ----------------------------------------------------------
   Shared — auth card width constraint (all auth pages)
   ---------------------------------------------------------- */
.auth-card-container {
    max-width: 480px;
    width: 100%;
}

/* ----------------------------------------------------------
   Shared — form-check accent (used on login + register)
   ---------------------------------------------------------- */
.form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* ----------------------------------------------------------
   Logout
   ---------------------------------------------------------- */

/* logout.html is a standalone page (no common-base.html) and
   defines its own body/header/button styles. These are scoped
   under .logout-* / .btn to avoid leaking into other pages. */

.logout-page-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes logout-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logout-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    border-bottom: 1px solid rgba(142, 217, 217, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    z-index: 100;
}

.logout-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.logout-logo {
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, #8ed9d9 0%, #3b8f8f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logout-logo-sub {
    font-size: 0.5em;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.logout-container {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(142, 217, 217, 0.1);
    animation: logout-fade-in 0.6s ease-out;
    margin-top: 80px;
    text-align: center;
}

.logout-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.logout-container h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #8ed9d9 0%, #3b8f8f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -1px;
}

.logout-container p {
    color: #6b7280;
    margin-bottom: 35px;
    font-size: 1.1em;
    line-height: 1.6;
}

.logout-btn-group {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1.05em;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}

.logout-btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

.logout-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239, 68, 68, 0.4);
}

.logout-btn-secondary {
    background: white;
    color: #8ed9d9;
    border: 2px solid #8ed9d9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logout-btn-secondary:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(142, 217, 217, 0.15);
}

@media (max-width: 768px) {
    .logout-container {
        padding: 40px 30px;
        margin-top: 60px;
    }

    .logout-container h1 {
        font-size: 1.8em;
    }
}

/* ----------------------------------------------------------
   Password Reset Success
   ---------------------------------------------------------- */
.success-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.success-card {
    max-width: 600px;
    width: 100%;
    border-radius: 1rem !important;
    box-shadow: 0 4px 20px rgba(67, 175, 175, 0.15) !important;
}

.success-card h1 {
    color: var(--bs-darker);
}

.success-card a {
    color: var(--bs-primary);
    transition: color 0.2s ease;
}

.success-card a:hover {
    color: var(--bs-darker);
}
