/**
 * E2M Biometric Authentication Styles
 * 
 * Styles for biometric login buttons and forms.
 * Follows iOS and Android design guidelines.
 *
 * @package E2M\Auth
 */

/* Login form wrapper */
.e2m-login-form-wrapper {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

/* Biometric login container */
#e2m-biometric-login-container {
    margin-bottom: 20px;
    text-align: center;
}

/* Biometric button - iOS inspired design */
.e2m-biometric-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-align: center;
    line-height: 1.4;
}

.e2m-biometric-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.e2m-biometric-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.e2m-biometric-button:focus {
    outline: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3), 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Icon within button */
.e2m-biometric-icon {
    margin-right: 8px;
    font-size: 20px;
    line-height: 1;
}

/* Enable biometric button - secondary style */
.e2m-enable-biometric-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #667eea;
    background: #ffffff;
    border: 2px solid #667eea;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.e2m-enable-biometric-button:hover {
    background: #667eea;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.e2m-enable-biometric-button:active {
    transform: translateY(0);
}

.e2m-enable-biometric-button:focus {
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* Divider between biometric and password login */
.e2m-login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #666;
    font-size: 14px;
}

.e2m-login-divider::before,
.e2m-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.e2m-login-divider::before {
    margin-right: 15px;
}

.e2m-login-divider::after {
    margin-left: 15px;
}

/* Form styling improvements */
#e2m-login-form input[type="text"],
#e2m-login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: border-color 0.3s ease;
}

#e2m-login-form input[type="text"]:focus,
#e2m-login-form input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#e2m-login-form input[type="submit"] {
    width: 100%;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#e2m-login-form input[type="submit"]:hover {
    background: #000;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .e2m-login-form-wrapper {
        padding: 15px;
    }
    
    .e2m-biometric-button {
        padding: 12px 20px;
        font-size: 15px;
    }
    
    .e2m-biometric-icon {
        font-size: 18px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .e2m-login-form-wrapper {
        color: #ffffff;
    }
    
    #e2m-login-form input[type="text"],
    #e2m-login-form input[type="password"] {
        background: #2a2a2a;
        border-color: #444;
        color: #ffffff;
    }
    
    .e2m-login-divider {
        color: #aaa;
    }
    
    .e2m-login-divider::before,
    .e2m-login-divider::after {
        border-color: #444;
    }
    
    .e2m-enable-biometric-button {
        background: #2a2a2a;
        color: #667eea;
        border-color: #667eea;
    }
    
    .e2m-enable-biometric-button:hover {
        background: #667eea;
        color: #ffffff;
    }
}

