﻿/* ============================================================
   Quick Login Modal Styles
   ============================================================ */

.ql-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: qlFadeIn 0.2s ease;
}

    .ql-modal-overlay.active {
        display: flex;
    }

@keyframes qlFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ql-modal {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    padding: 32px 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: qlSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes qlSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ql-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .ql-close:hover {
        background: #e5e7eb;
        color: #1f2937;
        transform: rotate(90deg);
    }

/* ===== Header ===== */
.ql-header {
    text-align: center;
    margin-bottom: 28px;
}

.ql-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    animation: qlPulse 2s ease-in-out infinite;
}

@keyframes qlPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(16, 185, 129, 0.4);
    }
}

.ql-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 6px;
}

.ql-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* ===== Form ===== */
.ql-form-group {
    margin-bottom: 20px;
}

.ql-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
    text-align: right;
}

.ql-input-wrapper {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 0 14px;
    transition: all 0.2s;
    min-height: 56px;
}

    .ql-input-wrapper:focus-within {
        border-color: #10b981;
        background: white;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
    }

.ql-prefix {
    color: #6b7280;
    font-weight: 700;
    font-size: 0.95rem;
    padding-left: 12px;
    border-left: 2px solid #e5e7eb;
    margin-left: 12px;
    direction: ltr;
}

.ql-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    letter-spacing: 2px;
    padding: 14px 0;
    direction: ltr;
    text-align: left;
}

    .ql-input::placeholder {
        color: #d1d5db;
        letter-spacing: 0;
        font-weight: 400;
        font-size: 0.95rem;
    }

/* ===== OTP Inputs ===== */
.ql-phone-display {
    font-size: 1.05rem;
    font-weight: 800;
    color: #10b981;
    text-align: center;
    margin: 0 0 16px;
    direction: ltr;
}

.ql-otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 8px;
    direction: ltr;
}

.ql-otp-input {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2937;
    background: #f9fafb;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    padding: 0;
    caret-color: #10b981;
}

    .ql-otp-input:focus {
        border-color: #10b981;
        background: white;
        box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
        transform: scale(1.05);
    }

    .ql-otp-input:not(:placeholder-shown) {
        border-color: #10b981;
        background: #f0fdf4;
        color: #059669;
    }

/* ===== Errors ===== */
.ql-error {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 8px;
    min-height: 18px;
    font-weight: 600;
    text-align: right;
}

/* ===== Timer ===== */
.ql-timer {
    text-align: center;
    margin: 16px 0;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .ql-timer i {
        color: #10b981;
    }

/* ===== Buttons ===== */
.ql-btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    min-height: 56px;
}

    .ql-btn-primary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(16, 185, 129, 0.4);
    }

    .ql-btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

/* ===== Actions ===== */
.ql-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.ql-link {
    background: none;
    border: none;
    color: #10b981;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    transition: all 0.2s;
}

    .ql-link:hover:not(:disabled) {
        color: #059669;
        transform: translateX(-2px);
    }

    .ql-link:disabled {
        color: #9ca3af;
        cursor: not-allowed;
    }

/* ===== Terms ===== */
.ql-terms {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 16px 0 0;
}

    .ql-terms a {
        color: #10b981;
        text-decoration: none;
        font-weight: 700;
    }

        .ql-terms a:hover {
            text-decoration: underline;
        }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 480px) {
    .ql-modal {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .ql-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .ql-title {
        font-size: 1.2rem;
    }

    .ql-otp-inputs {
        gap: 6px;
    }

    .ql-otp-input {
        font-size: 1.2rem;
        border-radius: 10px;
    }
}
