/**
 * WineFOR Login Form Styles
 * File: login-form.css
 * 
 * Stili per il form di login personalizzato
 * Utilizzato dallo shortcode [custom_login]
 */

/* ========================================
   LOGIN CONTAINER
======================================== */
.winefor-login-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========================================
   FORM STYLING
======================================== */
.winefor-login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.winefor-login-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.winefor-login-field label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.winefor-login-input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.winefor-login-input:focus {
    outline: none;
    border-color: #722f37;
    box-shadow: 0 0 0 3px rgba(114, 47, 55, 0.1);
}

/* ========================================
   REMEMBER ME CHECKBOX
======================================== */
.winefor-login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
}

.winefor-login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.winefor-login-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #722f37;
    cursor: pointer;
}

/* ========================================
   SUBMIT BUTTON
======================================== */
.winefor-login-submit {
    margin-top: 10px;
}

.winefor-login-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #722f37 0%, #8b3a47 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.winefor-login-button:hover {
    background: linear-gradient(135deg, #5a252a 0%, #722f37 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(114, 47, 55, 0.3);
}

.winefor-login-button:active {
    transform: translateY(0);
}

.winefor-login-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ========================================
   LINKS SECTION
======================================== */
.winefor-login-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.winefor-register-link,
.winefor-lost-password-link {
    color: #722f37;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.winefor-register-link:hover,
.winefor-lost-password-link:hover {
    color: #5a252a;
    text-decoration: underline;
}

/* ========================================
   LOGGED IN STATE
======================================== */
.winefor-login-logged-in {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin: 20px 0;
}

.winefor-login-logged-in p {
    margin: 10px 0;
    color: #333;
}

.winefor-logout-link,
.winefor-account-link {
    color: #722f37;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.winefor-logout-link:hover,
.winefor-account-link:hover {
    color: #5a252a;
    text-decoration: underline;
}

/* ========================================
   MESSAGE STYLES
======================================== */
.winefor-login-error,
.winefor-login-info,
.winefor-login-warning {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
}

.winefor-login-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.winefor-login-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.winefor-login-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 480px) {
    .winefor-login-container {
        margin: 15px;
        padding: 20px;
        border-radius: 8px;
    }
    
    .winefor-login-input {
        padding: 15px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .winefor-login-button {
        padding: 18px;
        font-size: 18px;
    }
    
    .winefor-login-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========================================
   LOADING STATE
======================================== */
.winefor-login-form.loading .winefor-login-input {
    pointer-events: none;
    opacity: 0.7;
}

.winefor-login-form.loading .winefor-login-button {
    background: #cccccc;
    cursor: wait;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
======================================== */
.winefor-login-input:focus,
.winefor-login-button:focus,
.winefor-login-remember input:focus {
    outline: 2px solid #722f37;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .winefor-login-input,
    .winefor-login-button,
    .winefor-register-link,
    .winefor-lost-password-link {
        transition: none;
    }
}

/* ========================================
   ADDITIONAL SECURITY INDICATORS
======================================== */
.winefor-login-security-info {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.winefor-login-security-info::before {
    content: "🔒 ";
    margin-right: 5px;
}
