/**
 * VapoChecker Login Modal Styles
 * Overlay + card + OAuth buttons + form inputs + consent step
 */

/* Modal overlay */
.vc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal card */
.vc-modal-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: vcModalFadeIn 0.2s ease-out;
}

@keyframes vcModalFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Close button */
.vc-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 4px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vc-modal-close:hover {
    color: #333;
}

/* Login heading */
.vc-login-heading {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a1a;
}

/* Subtitle */
.vc-login-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px;
}

/* OAuth buttons */
.vc-oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    min-height: 44px;
}
.vc-oauth-btn:hover {
    background: #f5f5f5;
}
.vc-oauth-btn svg {
    flex-shrink: 0;
}

/* Google button */
.vc-oauth-google {
    border-color: #dadce0;
}
.vc-oauth-google:hover {
    background: #f8f9fa;
    border-color: #4285f4;
}

/* Apple button */
.vc-oauth-apple {
    background: #000;
    color: #fff;
    border-color: #000;
}
.vc-oauth-apple:hover {
    background: #222;
}

/* Divider */
.vc-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #999;
    font-size: 13px;
}
.vc-auth-divider::before,
.vc-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

/* Email button */
.vc-email-login-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    min-height: 44px;
    transition: background 0.2s;
}
.vc-email-login-btn:hover {
    background: #f5f5f5;
}

/* Form labels */
.vc-login-step label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin: 12px 0 4px;
}

/* Form inputs */
.vc-login-step input[type="email"],
.vc-login-step input[type="password"],
.vc-login-step input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    margin: 2px 0 4px;
    box-sizing: border-box;
    min-height: 44px;
    transition: border-color 0.2s;
}
.vc-login-step input:focus {
    border-color: #2d7d46;
    outline: none;
    box-shadow: 0 0 0 2px rgba(45, 125, 70, 0.15);
}

/* Submit button */
.vc-login-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #2d7d46;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 12px;
    min-height: 44px;
    transition: background 0.2s;
}
.vc-login-submit:hover {
    background: #236b38;
}
.vc-login-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Consent step */
.vc-consent-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 12px 0;
}
.vc-consent-text a {
    color: #2d7d46;
    text-decoration: underline;
}
.vc-consent-cancel {
    text-align: center;
    margin-top: 12px;
}

/* Login step visibility */
.vc-login-step {
    display: none;
}
.vc-login-step.active {
    display: block;
}

/* Error message */
.vc-login-error {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 8px;
    display: none;
}
.vc-login-error.visible {
    display: block;
}

/* Links area */
.vc-login-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}
.vc-login-links a,
.vc-login-links button {
    color: #2d7d46;
    font-size: 13px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.vc-login-links a:hover,
.vc-login-links button:hover {
    color: #1a5a30;
}

/* Back link */
.vc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 12px;
    background: none;
    border: none;
    padding: 0;
}
.vc-back-link:hover {
    color: #333;
}

/* Toggle register button */
.vc-toggle-register {
    background: none;
    border: none;
    color: #2d7d46;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .vc-modal-card {
        padding: 24px 20px;
        border-radius: 8px;
        width: 95%;
    }
    .vc-login-heading {
        font-size: 20px;
    }
}
