/* ============================================
   Modern Login Page - 4 Big Buttons Layout
   ============================================ */

.auth-header { margin: 10px 0 24px; text-align: center; }
.auth-header h4 { margin-bottom: 8px; font-weight: 700; color: #111; font-size: 24px; }
.auth-header p { color: #666; font-size: 15px; margin: 0; }

.auth-error-message { margin-bottom: 12px; display: none; padding: 12px; background: #fee; border: 1px solid #fcc; border-radius: 8px; color: #c00; }
 
#googleButtonWrapper
{
    width: 106%;
}  
/* Main Login Options Container */
#loginOptionsContainer { max-width: 380px; margin: 0 auto; }

.auth-method-wrapper { margin-bottom: 12px; }

.auth-method-btn {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #dadce0;
    background-color: white;
    color: #3c4043;
    transition: all 0.2s ease;
    padding: 0 20px;
    cursor: pointer;
}

.auth-method-btn:hover {
    background-color: #f8f9fa;
    border-color: #c0c0c0;
    box-shadow: 0 1px 3px 0 rgba(60,64,67,.15), 0 4px 8px 3px rgba(60,64,67,.1);
}

.auth-method-btn svg, .auth-method-btn i {
    margin-right: 10px;
}

/* Google button styling */
.btn-google-signin {
    background-color: #fff;
    border: 1px solid #dadce0;
}
.btn-google-signin:hover {
    background-color: #f8f9fa;
}

/* Apple button styling */
.btn-apple-signin {
    background-color: #000;
    border-color: #000;
    color: #fff;
}
.btn-apple-signin:hover {
    background-color: #333;
    border-color: #333;
}

/* Magic link button styling */
.btn-magic-link-signin {
    background-color: #e8f4fd;
    border-color: #1a73e8;
    color: #1a73e8;
}
.btn-magic-link-signin:hover {
    background-color: #d2e8fc;
    border-color: #1967d2;
    color: #1967d2;
}

/* Email/Password button styling */
.btn-email-password-signin {
    background-color: #f5f5f5;
    border-color: #ddd;
    color: #444;
}
.btn-email-password-signin:hover {
    background-color: #eee;
    border-color: #ccc;
}

/* Form sections (hidden by default) */
.auth-form-section {
    max-width: 380px;
    margin: 0 auto;
    display: none;
}

.auth-form-section.active {
    display: block;
}

/* Back link */
.back-to-options {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
}
.back-to-options:hover {
    color: #FA5100;
}

/* Form styling improvements */
.auth-form-section .c2f-item { margin-bottom: 16px; }

#wlmodernForgotPasswordForm .c2f-item,
#magicLinkForm .c2f-item 
{ 
    text-align: center; 
}
.auth-form-section .c2f-form {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}
.auth-form-section .c2f-form:focus {
    border-color: #FA5100;
    outline: none;
    box-shadow: 0 0 0 2px rgba(250, 81, 0, 0.1);
}

.auth-form-section .btn-default {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
}

/* Success/Error messages in forms */
.auth-form-section .alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.auth-form-section .alert-success {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}
.auth-form-section .alert-danger {
    background: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #999;
    font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}
.auth-divider span {
    padding: 0 12px;
}

/* Hide old pill toggle */
.auth-method-toggle { display: none !important; }

/* Google Sign-In wrapper adjustments */
#gSignInWrapper {
    width: 100% !important;
   
}
#gSignInWrapper iframe {
    width: 100% !important;
}
.g_id_signin {
    width: 100% !important;
}
.g_id_signin > div {
    width: 100% !important;
    justify-content: center !important;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ============================================
   Email Sent Success Animation
   ============================================ */

.email-sent-container {
    text-align: center;
    padding: 30px 20px;
    max-width: 380px;
    margin: 0 auto;
}

.email-sent-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
}

/* Envelope icon */
.email-envelope {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.3);
    animation: envelopePulse 2s ease-in-out infinite;
}

.email-envelope::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(135deg, #1557b0 0%, #1a73e8 100%);
    border-radius: 8px 8px 0 0;
    clip-path: polygon(0 0, 50% 60%, 100% 0);
}

.email-envelope::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-top: 30px solid #1557b0;
}

/* Flying paper plane effect */
.email-plane {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    animation: planeFly 2.5s ease-in-out infinite;
}

.email-plane svg {
    fill: #FA5100;
    filter: drop-shadow(0 2px 4px rgba(250, 81, 0, 0.3));
}

/* Checkmark that appears */
.email-check {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 32px;
    height: 32px;
    background: #34a853;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkPop 0.5s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0;
    transform: scale(0);
}

.email-check svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* Sparkle effects */
.email-sparkle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #FE9D18;
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
}

.email-sparkle:nth-child(1) { top: 5px; left: 20px; animation-delay: 0s; }
.email-sparkle:nth-child(2) { top: 15px; right: 15px; animation-delay: 0.3s; }
.email-sparkle:nth-child(3) { bottom: 20px; left: 10px; animation-delay: 0.6s; }
.email-sparkle:nth-child(4) { bottom: 10px; right: 25px; animation-delay: 0.9s; }

/* Animations */
@keyframes envelopePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes planeFly {
    0%, 100% {
        transform: translate(0, 0) rotate(-45deg);
        opacity: 1;
    }
    50% {
        transform: translate(20px, -30px) rotate(-45deg);
        opacity: 0.5;
    }
}

@keyframes checkPop {
    0% { opacity: 0; transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

/* Email sent text content */
.email-sent-title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.email-sent-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 8px;
}

.email-sent-address {
    font-size: 16px;
    font-weight: 600;
    color: #1a73e8;
    word-break: break-all;
    margin-bottom: 16px;
}

.email-sent-subject {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.email-sent-subject-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.email-sent-subject-text {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.email-sent-note {
    font-size: 13px;
    color: #888;
    margin-top: 16px;
}

/* Unsubscribed state */
.email-unsubscribed-container {
    text-align: center;
    padding: 30px 20px;
    max-width: 380px;
    margin: 0 auto;
}

.email-unsubscribed-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: #ffebee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-unsubscribed-icon svg {
    width: 32px;
    height: 32px;
    fill: #c62828;
}

.email-unsubscribed-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}
.email-unsubscribed-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #555555;
    margin-bottom: 7px;
    text-transform: uppercase;
}
.email-unsubscribed-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-resubscribe {
    background: #f57c00;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-resubscribe:hover {
    background: #e65100;
}
