/**
 * Auth Forms CSS
 * Login & Registration Forms
 */

/* Container */
.uwm-auth-container {
    max-width: 480px;
    margin: 40px auto;
    padding: 20px;
}

.uwm-auth-box {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
    transition: all 0.3s ease;
}

.uwm-auth-box:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.12);
}

/* Header */
.uwm-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.uwm-auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.uwm-auth-header p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* Form */
.uwm-auth-form {
    margin: 0;
}

.uwm-form-group {
    margin-bottom: 20px;
}

.uwm-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
}

.uwm-form-group label .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
    color: #03968F;
}

.uwm-form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    box-sizing: border-box;
}

.uwm-form-control:focus {
    outline: none;
    border-color: #03968F;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(3, 150, 143, 0.1);
}

.uwm-form-control::placeholder {
    color: #95a5a6;
}

.uwm-form-hint {
    display: block;
    font-size: 12px;
    color: #95a5a6;
    margin-top: 5px;
}

/* Checkbox */
.uwm-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #34495e;
}

.uwm-checkbox input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 2px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.uwm-checkbox span a {
    color: #03968F;
    text-decoration: none;
}

.uwm-checkbox span a:hover {
    text-decoration: underline;
}

/* Form Row */
.uwm-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.uwm-forgot-link {
    font-size: 14px;
    color: #03968F;
    text-decoration: none;
}

.uwm-forgot-link:hover {
    text-decoration: underline;
}

/* Submit Button */
.uwm-submit-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #03968F;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.uwm-submit-btn:hover {
    background: #027a73;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(3, 150, 143, 0.3);
}

.uwm-submit-btn:active {
    transform: translateY(0);
}

.uwm-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.uwm-submit-btn .btn-loader {
    display: none;
}

.uwm-submit-btn.loading .btn-text {
    display: none;
}

.uwm-submit-btn.loading .btn-loader {
    display: inline-block;
}

.uwm-submit-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.uwm-auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.uwm-auth-footer p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

.uwm-auth-footer a {
    color: #03968F;
    text-decoration: none;
    font-weight: 600;
}

.uwm-auth-footer a:hover {
    text-decoration: underline;
}

/* Messages */
.uwm-form-messages {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.uwm-form-messages.show {
    display: block;
}

.uwm-form-messages.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.uwm-form-messages.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Notice */
.uwm-auth-notice {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px 30px;
    background: #e8f4f8;
    border-left: 4px solid #03968F;
    border-radius: 8px;
}

.uwm-auth-notice p {
    margin: 0;
    font-size: 15px;
    color: #2c3e50;
}

.uwm-auth-notice a {
    color: #03968F;
    text-decoration: none;
    font-weight: 600;
}

.uwm-auth-notice a:hover {
    text-decoration: underline;
}

.uwm-auth-notice.uwm-notice-error {
    background: #f8d7da;
    border-left-color: #e74c3c;
}

/* International phone input fixes */
.iti { width: 100%; }
.iti--allow-dropdown .iti__flag-container { z-index: 5; }
.iti__country-list { z-index: 10000; box-shadow: 0 10px 18px rgba(0,0,0,0.15); }
.uwm-auth-form input[type="tel"] { width: 100%; }

/* Combined Auth Tabs */
.uwm-combined-auth {
    max-width: 500px;
}

.uwm-auth-tabs {
    display: flex;
    margin-bottom: -1px;
    border-bottom: 2px solid #e0e0e0;
}

.uwm-tab-btn {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #7f8c8d;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.uwm-tab-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    margin-right: 5px;
}

.uwm-tab-btn:hover {
    color: #03968F;
}

.uwm-tab-btn.active {
    color: #03968F;
    border-bottom-color: #03968F;
}

.uwm-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.uwm-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 600px) {
    .uwm-auth-container {
        padding: 10px;
    }
    
    .uwm-auth-box {
        padding: 30px 20px;
    }
    
    .uwm-auth-header h2 {
        font-size: 24px;
    }
    
    .uwm-form-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .uwm-tab-btn {
        font-size: 14px;
        padding: 12px 15px;
    }
}

/* Color Variations */
.uwm-login-btn {
    background: #03968F;
}

.uwm-login-btn:hover {
    background: #027a73;
}

.uwm-register-btn {
    background: #03968F;
}

.uwm-register-btn:hover {
    background: #027a73;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .uwm-auth-box {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .uwm-auth-header h2 {
        color: #ecf0f1;
    }
    
    .uwm-form-control {
        background: #34495e;
        border-color: #4a5f7f;
        color: #ecf0f1;
    }
    
    .uwm-form-control:focus {
        background: #3a4f6a;
    }
    
    .uwm-form-group label {
        color: #ecf0f1;
    }
}


