/* Login and Registration Popup Styles */
#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}

.popup-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 32px 36px;
    width: 420px;
    max-width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    z-index: 10000;
    animation: popupFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.popup-close:hover {
    background-color: #eeeeee;
    color: #25402b;
    transform: rotate(90deg);
}

.popup-title {
    color: #25402b;
    font-size: 26px;
    text-align: center;
    margin-bottom: 24px;
    font-weight: 700;
    width: 100%;
}

.popup-subtitle {
    color: #333;
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.5;
}

.social-login {
    margin-bottom: 24px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.social-button svg {
    margin-right: 14px;
    width: 20px;
    height: 20px;
}

.google-button {
    background-color: white;
    color: #444;
    border: 1px solid #e0e0e0;
}

.facebook-button {
    background-color: #1877F2;
    color: white;
}

.facebook-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.facebook-button:hover:before {
    transform: translateX(0);
}

.facebook-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    background-color: #1666d8;
}

.facebook-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0 20px;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eaeaea;
}

.separator span {
    padding: 0 16px;
    color: #777;
    font-size: 14px;
    font-weight: 500;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group:last-of-type {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.form-hint {
    display: block;
    font-size: 13px;
    color: #777;
    margin-top: 8px;
    line-height: 1.5;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8f8f8;
}

.form-input:focus {
    outline: none;
    border-color: #25402b;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(37, 64, 43, 0.1);
}

.password-field {
    position: relative;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s;
    z-index: 5;
}

.password-toggle:hover {
    color: #333;
    background-color: rgba(0,0,0,0.05);
}

.form-checkbox {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #25402b;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
}

.form-checkbox {
    margin-right: 10px;
    margin-top: 3px;
}

.popup-button {
    width: 100%;
    padding: 14px;
    background-color: #25402b;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(37, 64, 43, 0.2);
    position: relative;
    overflow: hidden;
}

.popup-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.popup-button:hover:before {
    transform: translateX(0);
}

.popup-button:hover {
    background-color: #1c3022;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(37, 64, 43, 0.25);
}

.popup-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(37, 64, 43, 0.2);
}

.help-link {
    text-align: center;
    margin-top: 18px;
}

.back-button-container {
    text-align: center;
    margin-top: 24px;
}

.popup-link {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: block;
    margin: 10px 0;
    padding: 5px 0;
}

.popup-link:hover {
    color: #25402b;
    text-decoration: underline;
}

.popup-back {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    color: #25402b;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    padding: 10px 0;
}

.popup-back:hover {
    color: #1e3423;
    transform: translateX(-5px);
}

.popup-back i {
    margin-right: 10px;
    transition: all 0.3s;
}

.popup-back:hover i {
    transform: translateX(-5px);
}

.text-muted {
    color: #6c757d;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 18px;
}

.email-signup-option {
    display: flex;
    align-items: center;
    padding: 14px;
    background-color: #f8f8f8;
    border-radius: 12px;
    margin: 18px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.email-signup-option:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    border-color: #e0e0e0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.email-icon {
    margin-right: 14px;
    display: flex;
    align-items: center;
}

.email-text {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.welcome-text {
    text-align: center;
    margin-bottom: 28px;
}

.welcome-text h2 {
    color: #25402b;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.welcome-text p {
    font-size: 17px;
    color: #555;
}

.arabic-text {
    color: #FF4B2B;
    font-size: 22px;
    margin-top: 8px;
    font-weight: 600;
}

/* Link styling */
.link-text {
    color: #25402b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.link-text:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #25402b;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.link-text:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.link-text:hover {
    color: #1c3022;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .popup-container {
        width: 92%;
        padding: 24px;
        max-height: 90vh;
        border-radius: 20px;
    }
    
    .popup-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .social-button {
        font-size: 15px;
        padding: 12px;
    }
    
    .form-input {
        font-size: 14px;
        padding: 12px 14px;
    }
    
    .welcome-text h2 {
        font-size: 24px;
    }
    
    .arabic-text {
        font-size: 20px;
    }
} 