/* LWFS Authentication Styles */

.lwfs-auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lwfs-auth-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lwfs-auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.lwfs-auth-header h2 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.lwfs-auth-header p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.lwfs-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lwfs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.lwfs-form-group {
    display: flex;
    flex-direction: column;
}

.lwfs-form-group label {
    color: #333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.lwfs-form-group input,
.lwfs-form-group select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.lwfs-form-group input:focus,
.lwfs-form-group select:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lwfs-auth-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lwfs-auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.lwfs-auth-button:active {
    transform: translateY(0);
}

.lwfs-auth-links {
    text-align: center;
    margin-top: 20px;
}

.lwfs-auth-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.lwfs-auth-links a:hover {
    color: #764ba2;
}

.lwfs-auth-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.lwfs-auth-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lwfs-auth-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.lwfs-auth-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.lwfs-auth-loading.show {
    display: block;
}

.lwfs-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .lwfs-auth-box {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .lwfs-form-row {
        grid-template-columns: 1fr;
    }
    
    .lwfs-auth-header h2 {
        font-size: 24px;
    }
}

/* Form Switch Animation */
.lwfs-auth-container {
    position: relative;
    overflow: hidden;
}

.lwfs-auth-box {
    transition: transform 0.3s ease;
}

.lwfs-auth-box.switching {
    transform: translateX(-100%);
}

/* Password Strength Indicator */
.lwfs-password-strength {
    margin-top: 5px;
    font-size: 12px;
}

.lwfs-password-strength.weak {
    color: #dc3545;
}

.lwfs-password-strength.medium {
    color: #ffc107;
}

.lwfs-password-strength.strong {
    color: #28a745;
}

/* Custom Select Styling */
.lwfs-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Focus States for Accessibility */
.lwfs-form-group input:focus,
.lwfs-form-group select:focus,
.lwfs-auth-button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Loading State for Buttons */
.lwfs-auth-button.loading {
    position: relative;
    color: transparent;
}

.lwfs-auth-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
} 