/**
 * EasyAuth Frontend Styles
 */

.easyauth-form-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 20px;
}

.easyauth-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.easyauth-login-panel {
    display: none;
}

.easyauth-login-panel.active {
    display: block;
}

.easyauth-form h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.easyauth-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

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

.easyauth-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.easyauth-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.easyauth-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.easyauth-password-wrapper {
    position: relative;
}

.easyauth-password-wrapper .easyauth-input {
    padding-right: 40px;
}

.easyauth-toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.easyauth-toggle-password:hover {
    color: #333;
}

.easyauth-toggle-password svg {
    fill: currentColor;
}

.easyauth-input.easyauth-otp-input {
    letter-spacing: 5px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}

.easyauth-otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.easyauth-otp-digit {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.easyauth-otp-digit:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.easyauth-otp-digit.filled {
    border-color: #0073aa;
    background-color: #f0f8ff;
}

.easyauth-btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.easyauth-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.easyauth-btn:active {
    transform: translateY(0);
}

.easyauth-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.easyauth-btn-resend {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
    padding: 5px;
}

.easyauth-btn-resend:hover {
    color: #005177;
}

.easyauth-btn-back {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    padding: 5px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.easyauth-btn-back:hover {
    color: #333;
    text-decoration: underline;
}

.easyauth-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: easyauth-spin 0.8s linear infinite;
}

@keyframes easyauth-spin {
    to {
        transform: rotate(360deg);
    }
}

.easyauth-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

.easyauth-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.easyauth-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.easyauth-message.info {
    background: #cce5ff;
    color: #004085;
    border-left: 4px solid #007bff;
}

.easyauth-resend {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.easyauth-resend-timer {
    color: #999;
}

.easyauth-already-logged-in {
    background: #f7f7f7;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 20px;
}

.easyauth-hidden-email,
.easyauth-hidden-mobile {
    display: none;
}

.easyauth-step-indicator {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.easyauth-form-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.easyauth-form-links a {
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin: 0 8px;
}

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

.easyauth-form-links a:not(:last-child)::after {
    content: '|';
    margin-left: 8px;
    color: #ccc;
}

@media (max-width: 480px) {
    .easyauth-form-container {
        padding: 10px;
    }
    
    .easyauth-form {
        padding: 20px;
    }
    
    .easyauth-tabs {
        flex-direction: column;
    }
    
    .easyauth-tab-btn {
        border-radius: 4px;
    }
}
