/**
 * AutoDirectMy - Dedicated Login Styles
 */

:root {
    --black: #ffffff;           /* Now white */
    --dark-gray: #f8f9fa;      /* Very light gray for cards */
    --medium-gray: #e9ecef;    /* Border colors */
    --red: #d32f2f;            /* Keep the brand red */
    --bright-red: #b71c1c;     /* Slightly darker red for hover contrast on white */
    --white: #1a1a1a;          /* Now your primary text color */
    --text-muted: #6c757d;     /* Lighter gray for secondary text */
    --bg-body: #f4f7f6;        /* Subtle off-white for the main background */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-body);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    overflow: hidden; /* No scrolling needed for simple login */
    position: relative;
}


.login-card {
    background: var(--dark-gray);
    width: 100%;
    max-width: 380px;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--medium-gray);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Accent top border */
.login-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--bright-red));
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.main-logo {
    max-width: 110px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.header h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--white);
    margin-bottom: 5px;
}

.header p {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Inputs & Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 14px;
    background: var(--black);
    border: 1px solid #b4b4b4;
    border-radius: 8px;
    color: var(--white);
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.form-group input:focus {
    border-color: var(--red);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

/* Password Toggle logic */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
}

.toggle-btn:hover {
    color: var(--white);
}

/* Options Bar */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 13px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-muted);
    gap: 8px;
}

.forgot-link {
    color: var(--bright-red);
    text-decoration: none;
    font-weight: 600;
}

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

/* Login Button */
.login-btn {
    width: 100%;
    padding: 15px;
    background: var(--red);
    color: var(--black);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    background: var(--bright-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 23, 68, 0.3);
}

/* Status Boxes */
.error-box {
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid var(--red);
    color: var(--bright-red);
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-text {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: var(--text-muted);
}

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

.footer-text a:hover {
    color: var(--bright-red);
}

.version {
    margin-top: 15px;
    font-size: 11px;
    opacity: 0.4;
}