/* Login Modal Styles */
.login-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

/* Free Tier Info Styles */
.free-tier-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1rem 0;
}

.free-tier-info .tier-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.free-tier-info .tier-header i {
    font-size: 1.5rem;
    color: #3b82f6;
}

.free-tier-info .tier-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: #1e40af;
}

.tier-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.tier-features-list li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: #1e40af;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.tier-features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 1.125rem;
}

.tier-upgrade-note {
    margin: 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 0.875rem;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tier-upgrade-note i {
    color: #f59e0b;
}

.login-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal-content {
    background-color: var(--white);
    margin: 2rem auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideIn 0.3s ease;
}

.login-modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.login-modal-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.login-modal-logo img {
    height: 60px;
    width: auto;
}

.login-modal-header h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.5rem;
}

.login-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.login-modal-close:hover {
    background-color: var(--light-bg);
    color: var(--text-color);
}

.login-modal-body {
    padding: 2rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.email-verification-notice {
    background: #dbeafe;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.email-verification-notice i {
    color: #3b82f6;
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.email-verification-notice p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #1e40af;
}

.email-verification-notice strong {
    display: block;
    margin-bottom: 0.25rem;
}

.login-form-group {
    margin-bottom: 1.5rem;
}

.login-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.checkbox-group {
    margin-top: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.login-form-group input,
.login-form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

.login-form-group input:focus,
.login-form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-error-message {
    display: none;
    padding: 1rem;
    background-color: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: var(--border-radius);
    color: #991b1b;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    animation: slideDown 0.3s ease;
}

.login-error-message.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.login-form-actions .btn {
    width: 100%;
}

.login-form-actions .btn:disabled,
.login-form-actions .btn[disabled] {
    background-color: #9ca3af !important;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.login-help-text {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.875rem;
}

.login-help-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-help-text a:hover {
    text-decoration: underline;
}

/* Demo Mode Notice */
.demo-notice {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--border-radius);
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #92400e;
}

.demo-notice strong {
    display: block;
    margin-bottom: 0.25rem;
}
