/* ========================================
   LOGIN MODAL STYLES
   ======================================== */

.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
}

.login-modal-content {
    background: white;
    border-radius: 1.5rem;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.login-modal.active .login-modal-content {
    transform: scale(1);
}

.login-modal-header {
    position: relative;
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-modal:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.login-header-branding .modal-logo {
    height: 60px;
    margin: 0 auto 0.5rem;
}

.modal-tagline {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.login-modal-body {
    padding: 2rem;
}

.login-modal-body h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #0f172a;
    font-size: 1.5rem;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    padding: 0.25rem;
    border-radius: 0.75rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-tab.active {
    background: white;
    color: #0EA5E9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Form Groups */
.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #0EA5E9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Phone Input */
.phone-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.phone-input-group:focus-within {
    border-color: #0EA5E9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.country-flag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.75rem;
    border-right: 1px solid #e2e8f0;
}

.country-flag img {
    width: 20px;
    height: auto;
}

.country-flag span {
    font-weight: 600;
    color: #0f172a;
}

.phone-input-group input {
    flex: 1;
    border: none;
    padding: 0.5rem;
    font-size: 1rem;
    outline: none;
}

/* Buttons */
.btn-continue {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #0EA5E9, #0284C7);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.btn-continue:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-continue:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
    position: relative;
}

/* Google Button */
.btn-google {
    width: 100%;
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.btn-google:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

/* Footer Info */
.login-footer-info {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer-info p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

.login-footer-info a {
    color: #0EA5E9;
    text-decoration: none;
    font-weight: 500;
}

.login-footer-info a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .login-modal-content {
        width: 95%;
        max-width: 400px;
    }

    .login-modal-body {
        padding: 1.5rem;
    }

    .login-modal-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
}