/* content of css/auth.css */
/* Modal Overlay - Required for positioning */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    position: relative;
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    max-width: 420px;
}

#navLoginBtn {
    cursor: pointer;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.auth-header {
    background: linear-gradient(135deg, #fdfbf7 0%, #fff 100%);
    padding: 30px 20px 10px;
    border-bottom: none;
    text-align: center;
}

.auth-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.auth-title {
    font-family: 'Playfair Display', serif;
    color: var(--primary, #d4a017);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.auth-subtitle {
    color: #666;
    margin-top: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.auth-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.auth-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 15px 0;
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #eee;
}

.auth-divider::before {
    margin-right: 15px;
}

.auth-divider::after {
    margin-left: 15px;
}

/* Close Button Override */
.close-modal-login {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    font-size: 1.2rem;
    z-index: 10;
}

.close-modal-login:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
    color: #000;
}

/* Google Button Wrapper */
.google-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: 50px;
    /* Prevent layout shift */
}

/* Manual Login Form */
.auth-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-input-group {
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-color: var(--primary, #d4a017);
}

.auth-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
}

.btn-auth-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary, #d4a017);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-auth-submit:hover {
    background: #b88a10;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .auth-modal {
        max-width: 90%;
        border-radius: 20px;
    }

    .auth-body {
        padding: 20px;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-input {
        padding: 10px 15px 10px 35px;
        font-size: 0.95rem;
    }
}