/* login-new.css - Modern Light SaaS Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700&display=swap');

:root {
    --bg-color: #f8fafc;
    --bg-gradient: radial-gradient(at 15% 15%, #eef2ff 0px, transparent 50%), radial-gradient(at 85% 85%, #e0f2fe 0px, transparent 50%), #f8fafc;
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-focus: #4f46e5;
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    position: relative;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 45%, transparent 85%);
}

.login-container {
    width: 100%;
    max-width: 440px;
    padding: 1.5rem 1.25rem;
    position: relative;
    z-index: 10;
}

.login-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
}

.brand-section {
    text-align: center;
    margin-bottom: 1.75rem;
}

.brand-section img {
    height: 44px;
    margin-bottom: 0.9rem;
}

.brand-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: #eef2ff;
    color: #4f46e5;
    border: 1px solid #c7d2fe;
    margin-bottom: 0.75rem;
}

.brand-section h2 {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.brand-section p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.45rem;
}

.flex-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 0.68rem 0.9rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 0.6rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--input-focus);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.form-control::placeholder {
    color: #94a3b8;
}

.btn {
    width: 100%;
    padding: 0.72rem 1rem;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--primary-color);
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-links-bar {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.82rem;
}

.auth-links-bar a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-links-bar a:hover {
    text-decoration: underline;
}

.footer-text {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: #64748b;
}

.footer-text a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.footer-text a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.75rem;
    width: 100%;
    max-width: 400px;
    transform: scale(0.96);
    transition: transform 0.25s ease;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.12);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--text-main);
}

.btn-danger {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 48%;
}

.btn-danger:hover {
    background: #f1f5f9;
}

.btn-primary-modal {
    background: var(--primary-color);
    color: white;
    width: 48%;
}

.btn-primary-modal:hover {
    background: var(--primary-hover);
}
