.auth-modal-page {
        min-height: calc(100vh - 400px);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 1rem;
    }
    
    .auth-card {
        background: var(--bg-secondary);
        border-radius: 16px;
        max-width: 450px;
        width: 100%;
        padding: 2.5rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        border: 1px solid var(--border);
    }
    
    .auth-card-header {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .auth-card-header h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
    }
    
    .auth-card-header p {
        color: var(--text-secondary);
        font-size: 0.95rem;
    }

    @media (max-width: 768px) {
        /* .container already adds its own 1rem horizontal gutter on mobile
           (see base.html) -- dropping this page's own side padding here
           avoids stacking a second gutter on top of it, so the card gets
           the full available width instead of losing it twice over. */
        .auth-modal-page {
            padding: 2rem 0;
        }
    }

    @media (max-width: 480px) {
        .auth-modal-page {
            min-height: auto;
            padding: 1rem 0;
        }

        .auth-card {
            padding: 1.5rem;
        }

        .auth-card-header h1 {
            font-size: 1.5rem;
        }
    }

    .auth-tabs {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 2rem;
        background: var(--bg-primary);
        padding: 0.25rem;
        border-radius: 8px;
    }
    
    .auth-tab {
        flex: 1;
        padding: 0.75rem;
        border: none;
        background: transparent;
        cursor: pointer;
        font-weight: 600;
        color: var(--text-secondary);
        transition: all 0.3s;
        border-radius: 6px;
    }
    
    .auth-tab.active {
        color: var(--text-primary);
        background: var(--primary);
        color: #1a1a1a;
    }
    
    .auth-form {
        display: none;
    }
    
    .auth-form.active {
        display: block;
    }
    
    .form-input {
        width: 100%;
        padding: 0.875rem;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--bg-primary);
        color: var(--text-primary);
        font-size: 0.95rem;
        margin-bottom: 1rem;
        transition: border-color 0.3s;
    }
    
    .form-input:focus {
        outline: none;
        border-color: var(--primary);
    }
    
    .submit-btn {
        width: 100%;
        padding: 1rem;
        background: var(--primary);
        color: #1a1a1a;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.3s;
    }
    
    .submit-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(255, 140, 0, 0.4);
    }
    
    .submit-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .error-message {
        color: var(--danger);
        font-size: 0.875rem;
        margin-top: 0.5rem;
        display: none;
    }
    
    .error-message.show {
        display: block;
    }
    
    .switch-auth {
        text-align: center;
        margin-top: 1.5rem;
        color: var(--text-secondary);
        font-size: 0.9rem;
    }
    
    .switch-auth a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
    }
    
    .terms-notice {
        text-align: center;
        font-size: 0.8rem;
        color: var(--text-secondary);
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    
    .terms-notice a {
        color: var(--primary);
        text-decoration: none;
    }
    
    .terms-notice a:hover {
        text-decoration: underline;
    }

    .hp-field {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        opacity: 0;
    }

    .cf-turnstile {
        margin-bottom: 1rem;
    }
