:root {
    --brand-color: #d93025;
    --brand-hover: #b71c1c;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-color: #f8fafc;
    --border-color: #e2e8f0;
}

* {
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    margin: 0;
    min-height: 100vh;
    display: flex;
}

.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Left Side: Visual/Brand */
.login-visual {
    flex: 1.2;
    background: linear-gradient(135deg, #d93025 0%, #7f1d1d 100%);
    position: relative;
    display: none;
    overflow: hidden;
    color: white;
    padding: 4rem;
}

@media (min-width: 992px) {
    .login-visual {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Abstract circles for background decoration */
.visual-decor-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.visual-decor-2 {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
}

.visual-content {
    position: relative;
    z-index: 2;
}

.visual-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.visual-content p {
    font-size: 1.15rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 85%;
    line-height: 1.6;
}

/* Right Side: Form */
.login-form-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--surface-color);
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.logo-mobile {
    display: block;
    margin-bottom: 2rem;
    max-height: 60px;
}

@media (min-width: 992px) {
    .logo-mobile {
        display: none;
    }
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header h2 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 1.5px solid var(--border-color);
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
    background-color: #f8fafc;
}

.form-control:focus {
    background-color: #fff;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 4px rgba(217, 48, 37, 0.1);
}

.input-group-text {
    background-color: #f8fafc;
    border: 1.5px solid var(--border-color);
    border-left: none;
    border-top-right-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.form-control:focus+.input-group-text {
    background-color: #fff;
    border-color: var(--brand-color);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 0 4px rgba(217, 48, 37, 0.1);
    clip-path: inset(-4px -4px -4px 0px);
}

.password-field {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.password-field:focus {
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 0 4px rgba(217, 48, 37, 0.1);
    clip-path: inset(-4px 0px -4px -4px);
}

.forgot-link {
    color: var(--brand-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

.btn-brand {
    background-color: var(--brand-color);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 0.75rem;
    width: 100%;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(217, 48, 37, 0.2), 0 2px 4px -1px rgba(217, 48, 37, 0.1);
}

.btn-brand:hover {
    background-color: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(217, 48, 37, 0.3), 0 4px 6px -2px rgba(217, 48, 37, 0.15);
    color: white;
}

.btn-brand:active {
    transform: translateY(0);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.spinner-brand {
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--brand-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.loading-subtext {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}