/* Frontend Auth Pro Styles */

.fap-form-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.fap-form h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 500;
    text-align: center;
    color: #333;
}

.fap-field {
    margin-bottom: 1.25rem;
}

.fap-field label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #555;
    font-size: 0.9rem;
}

.fap-field input[type="text"],
.fap-field input[type="email"],
.fap-field input[type="password"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.fap-field input:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,124,186,0.1);
}

.fap-captcha {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f9f9f9;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.fap-captcha span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.fap-captcha input {
    width: 80px !important;
    text-align: center;
}

.fap-submit {
    width: 100%;
    padding: 0.9rem;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.fap-submit:hover {
    background: #005a87;
}

.fap-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fap-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: fap-spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

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

.fap-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    display: none;
}

.fap-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

.fap-google-login {
    margin-top: 1.5rem;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.fap-google-button {
    display: inline-block;
    background: #4285f4;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.fap-google-button:hover {
    background: #3367d6;
    color: #fff;
}

.fap-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.fap-links a {
    color: #007cba;
    text-decoration: none;
    margin: 0 0.5rem;
}

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

/* Mobile */
@media (max-width: 480px) {
    .fap-form-container {
        padding: 1.5rem;
        margin: 1rem;
    }
}
/* Add to existing CSS */
.fap-captcha-refresh.loading {
    animation: fap-spin 1s infinite linear;
    pointer-events: none;
    opacity: 0.7;
}

.fap-captcha-refresh.loading::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: currentColor;
    animation: fap-spin 0.6s linear infinite;
}

@keyframes fap-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Better error state */
.fap-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 15px;
    border-radius: 4px;
    margin: 15px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Debug info (optional - remove in production) */
.fap-debug {
    background: #f0f0f0;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
    display: none;
}