/* ========================================
   Google Login Popup - Custom Styles
   Version: 2.4 (Fixed)
   ======================================== */

/* Overlay - covers full screen */
.glp-popup-overlay {
    display: none;
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.glp-popup-overlay.active {
    display: flex !important;
    opacity: 1;
}

/* Modal Wrapper - Ensures proper centering */
.glp-modal-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

/* Modal Content */
.glp-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1f2937 0%, #111827 50%, #1f2937 100%);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(75, 85, 99, 0.3);
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glp-modal-content.active {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close Button */
.glp-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.glp-close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Logo Section */
.glp-logo-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.glp-logo-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.glp-logo {
    width: 112px;
    height: auto;
    display: block;
}

/* Welcome Text */
.glp-welcome-text {
    text-align: center;
    margin-bottom: 2rem;
}

.glp-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.glp-subtitle {
    font-size: 0.875rem;
    color: #9ca3af;
    margin: 0;
}

/* Button Wrapper */
.glp-button-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Google Login Button */
.glp-google-btn {
    position: relative;
    width: 100%;
    background: #fff;
    color: #1f2937;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.glp-google-btn:hover {
    background: #f9fafb;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.glp-google-btn:active {
    transform: scale(0.98);
}

.glp-google-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.glp-google-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.glp-google-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.glp-btn-text {
    flex: 1;
    text-align: center;
}

.glp-arrow-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.2s;
}

.glp-google-btn:hover .glp-arrow-icon {
    transform: translateX(4px);
}

/* Divider */
.glp-divider-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.glp-divider-line {
    flex: 1;
    height: 1px;
    background: #374151;
}

.glp-divider-text {
    font-size: 0.875rem;
    color: #6b7280;
    white-space: nowrap;
}

/* Terms Text */
.glp-terms-text {
    font-size: 0.75rem;
    text-align: center;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.glp-link {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.2s;
}

.glp-link:hover {
    color: #93c5fd;
}

/* Decorative Elements */
.glp-decor-blue,
.glp-decor-purple {
    position: absolute;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    pointer-events: none;
}

.glp-decor-blue {
    top: -2.5rem;
    right: -2.5rem;
    background: #3b82f6;
}

.glp-decor-purple {
    bottom: -2.5rem;
    left: -2.5rem;
    background: #a855f7;
}

/* Body Lock - Prevent scrollbar shift */
body.glp-no-scroll {
    overflow: hidden !important;
}

/* ========================================
   PHONE NUMBER POPUP STYLES
   ======================================== */

/* Phone Modal Specific */
.glp-phone-modal {
    max-width: 400px;
}

/* Phone Icon */
.glp-phone-icon {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Phone Input Wrapper */
.glp-input-wrapper {
    margin: 1.5rem 0;
}

/* Phone Input Field */
.glp-phone-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(75, 85, 99, 0.3);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #fff;
    text-align: center;
    transition: all 0.3s ease;
    outline: none;
}

.glp-phone-input::placeholder {
    color: #6b7280;
}

.glp-phone-input:focus {
    border-color: #60a5fa;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.glp-phone-input:invalid {
    border-color: #ef4444;
}

/* Error Text */
.glp-error-text {
    font-size: 0.875rem;
    color: #ef4444;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 0.5rem;
}

/* Phone Button */
.glp-phone-btn {
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 640px) {
    .glp-modal-content {
        padding: 2rem 1.5rem;
    }
    
    .glp-title {
        font-size: 1.5rem;
    }
    
    .glp-logo {
        width: 96px;
    }
    
    .glp-phone-icon {
        font-size: 2.5rem;
    }

    .glp-popup-overlay {
        padding: 10px;
    }
}

/* Animation Keyframes */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.glp-spinner {
    animation: spin 1s linear infinite;
}

/* Loading State */
.glp-google-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.glp-google-btn.loading .glp-btn-text::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}