/**
 * 3 Walls Auth Forms CSS
 *
 * @package ThreeWalls_Access
 */

/* Auth Form Container - Force styling with !important to override WooCommerce/theme styles */
.twa-auth-form,
.twa-login-form,
.twa-register-form,
.twa-forgot-form {
    max-width: 450px !important;
    margin: 40px auto !important;
    background: white !important;
    padding: 40px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,.1) !important;
    display: block !important;
}

/* Auth Header */
.twa-auth-form .twa-auth-header,
.twa-login-form .twa-auth-header,
.twa-register-form .twa-auth-header {
    text-align: center !important;
    margin-bottom: 30px !important;
}

.twa-auth-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
}

.twa-auth-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: var(--twa-dark, #0f182b);
}

.twa-auth-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Alert Messages */
.twa-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.twa-alert-error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.twa-alert-success {
    background: #ecfdf5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.twa-alert-info {
    background: #eff6ff;
    border-left: 4px solid #2b64cc;
    color: #1e3a8a;
}

/* Form Styles */
.twa-form {
    margin-top: 20px;
}

.twa-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.twa-form-group {
    margin-bottom: 20px;
}

.twa-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--twa-dark, #0f182b);
    font-size: 14px;
}

.twa-form-group input[type="text"],
.twa-form-group input[type="email"],
.twa-form-group input[type="password"],
.twa-login-form input[type="text"],
.twa-login-form input[type="password"] {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    transition: all 0.3s !important;
    box-sizing: border-box !important;
    background: white !important;
}

.twa-form-group input:focus,
.twa-login-form input:focus {
    outline: none !important;
    border-color: var(--twa-primary, #2b64cc) !important;
    box-shadow: 0 0 0 3px rgba(43, 100, 204, 0.1) !important;
}

.twa-form-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.twa-form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.twa-field-help {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #6b7280;
}

/* Form Actions */
.twa-form-actions {
    margin-top: 25px;
}

/* Form Links */
.twa-form-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.twa-form-links a {
    color: var(--twa-primary, #2b64cc);
    text-decoration: none;
    font-weight: 500;
}

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

.twa-separator {
    margin: 0 8px;
    color: #d1d5db;
}

/* Login Prompt */
.twa-login-prompt {
    max-width: 500px;
    margin: 60px auto;
    text-align: center;
}

.twa-login-prompt-inner {
    background: white;
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);
}

.twa-login-prompt h2 {
    margin: 0 0 15px 0;
    color: var(--twa-dark, #0f182b);
}

.twa-login-prompt p {
    margin: 0 0 25px 0;
    color: #6b7280;
}

/* Password Strength Indicator */
.twa-password-strength {
    margin-top: 8px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.twa-password-strength-bar {
    height: 100%;
    transition: all 0.3s;
    border-radius: 2px;
}

.twa-password-strength-weak .twa-password-strength-bar {
    width: 33%;
    background: #ef4444;
}

.twa-password-strength-medium .twa-password-strength-bar {
    width: 66%;
    background: #f97316;
}

.twa-password-strength-strong .twa-password-strength-bar {
    width: 100%;
    background: #10b981;
}

/* Responsive */
@media (max-width: 767px) {
    .twa-auth-form {
        margin: 20px;
        padding: 30px 20px;
    }

    .twa-form-row {
        grid-template-columns: 1fr;
    }

    .twa-login-prompt-inner {
        padding: 40px 20px;
    }
}
