/* Mox Login Plugin Styles */
.mox-login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mox-form-wrapper {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
}

.mox-form-wrapper h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

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

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

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

.form-group input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.mox-btn {
    width: 100%;
    padding: 12px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    opacity: 0.7;
    cursor: not-allowed;
}

.mox-btn:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}

.mox-btn:hover:not(:disabled) {
    background-color: #357ae8;
}

.form-footer {
    text-align: center;
    margin-top: 25px;
}

.form-footer a {
    color: #4a90e2;
    text-decoration: none;
}

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

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.info-message {
    background-color: #d1ecf1;
    color: #0c5460;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Password strength meter */
.password-strength-meter {
    margin-top: 10px;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.3s, background-color 0.3s;
}

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

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.password-requirements li {
    font-size: 13px;
    padding: 2px 0;
    color: #888;
}

.password-requirements li.valid {
    color: #28a745;
}

.password-requirements li.invalid {
    color: #dc3545;
}

.password-match {
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
}

.match-valid {
    color: #28a745;
}

.match-invalid {
    color: #dc3545;
}

/* Strength colors */
.strength-weak {
    background-color: #dc3545;
    width: 20%;
}

.strength-medium {
    background-color: #fd7e14;
    width: 40%;
}

.strength-good {
    background-color: #ffc107;
    width: 70%;
}

.strength-strong {
    background-color: #28a745;
    width: 100%;
}

/* Logout page styles */
.mox-logout-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.mox-logout-wrapper {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}

.mox-logout-wrapper h2 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.mox-logout-wrapper p {
    color: #666;
    margin-bottom: 30px;
}

.logout-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #4a90e2;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.social-section { margin: 24px 0; }
.social-divider { display: flex; align-items: center; color: #666; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.social-divider::before, .social-divider::after { content: ''; flex: 1; height: 1px; background: #e9e9e9; margin: 0 12px; }
.social-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.social-btn { display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 6px 14px rgba(0,0,0,.12); transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease; }
.social-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(0,0,0,.18); }
.social-btn:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.social-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(74,144,226,.35); }
.social-btn--icon { width: 56px; height: 56px; border-radius: 50%; }
.social-btn--icon::after { content: ''; display: block; width: 24px; height: 24px; background-repeat: no-repeat; background-position: center; background-size: 24px 24px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.15)); }
.social-btn.google { background: linear-gradient(135deg, #ea4335, #c5221f); }
.social-btn.facebook { background: linear-gradient(135deg, #1877f2, #0d65d9); }
.social-btn.apple { background: linear-gradient(135deg, #000000, #333333); }
.social-btn.google::after { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g fill="none"><path d="M12 10.2h10.3c.1.7.2 1.3.2 2 0 6.6-4.4 11.3-10.5 11.3C5.5 23.5 0 18 0 12S5.5 .5 11.9 .5c3 .1 5.8 1.2 7.9 3.2l-3.2 3.2C15.4 5.7 13.8 5 12 5 8.1 5 4.9 8.2 4.9 12s3.2 7 7.1 7c3.7 0 6.1-2.1 6.6-4.9H12V10.2z" fill="%23ffffff"/></g></svg>'); }
.social-btn.facebook::after { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ffffff" d="M15.5 8H13V6.5c0-.7.5-1 1.3-1H15V3.2C14.5 3.1 13.8 3 13 3c-2 0-3.3 1.2-3.3 3.4V8H8v3h1.7v7h3.3v-7h2.2l.3-3z"/></svg>'); }
.social-btn.apple::after { background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ffffff" d="M16.4 12.7c0-2.6 2.1-3.9 2.2-3.9-1.2-1.7-3.1-1.9-3.8-1.9-1.6-.1-3.1.9-3.9.9-.8 0-2-.9-3.3-.9-1.7 0-3.3 1-4.1 2.5-1.8 3.1-.5 7.6 1.3 10.1.8 1.2 1.8 2.5 3.1 2.5 1.2 0 1.6-.8 3-.8s1.7.8 3.3.8c1.4 0 2.4-1.2 3.2-2.3.7-1.1 1-2.2 1-2.3-.1 0-2.9-1.1-2.9-4.8zM13.9 4.8c.7-.9 1.2-2.2 1-3.5-1 .1-2.2.7-2.9 1.6-.6.8-1.1 2.1-1 3.4 1.1.1 2.2-.6 2.9-1.5z"/></svg>'); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* Responsive styles */
@media (max-width: 576px) {
    .mox-form-wrapper,
    .mox-logout-wrapper {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .mox-form-wrapper h2,
    .mox-logout-wrapper h2 {
        font-size: 24px;
    }
    
    .form-group input {
        font-size: 16px; /* Prevents zoom on iOS Safari */
    }
}