/* CSS Variables for theming */
:root {
  --background: #000000;
  --foreground: #ffffff;
  --secondary: #404040;
  --primary: #D52B1E;
  --text-muted: #a3a3a3;
  --border: #333333;
  --footer-bg: #000000;
  --footer-border: #333333;
  --primary-hover: #b91c1c;
}

[data-theme="light"] {
  --background: #ffffff;
  --foreground: #000000;
  --secondary: #f5f5f5;
  --primary: #D52B1E;
  --text-muted: #666666;
  --border: #e5e5e5;
  --footer-bg: #f5f5f5;
  --footer-border: #e5e5e5;
  --primary-hover: #b91c1c;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background: var(--background);
}

.login-hero {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 4rem;
    width: 100%;
    background: var(--hero-bg);
    padding: 2rem !important;
    margin-top: 0;
    transition: background-color 0.3s ease;
}

.hero-content {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.login-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.login-hero .highlight {
    color: var(--primary);
}

.login-hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.login-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    color: var(--foreground);
    width: 100%;
    text-align: center;
}

.login-form-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.login-form {
    background: var(--secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.login-form h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--foreground);
    text-align: center;
}

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

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

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon svg {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.input-with-icon input {
    width: 100%;
    padding: 0.8rem 1rem;
    padding-left: 3rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--foreground);
    font-size: 1rem;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.sign-in-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 2rem);
    height: 1px;
    background: var(--border);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: var(--secondary);
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-links {
    text-align: center;
}

.auth-links p {
    margin: 0.5rem 0;
    color: var(--text-muted);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }

    .login-hero h1 {
        font-size: 2rem;
    }

    .login-form {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .login-hero h1 {
        font-size: 1.8rem;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}
