/* --- Global & Font Setup --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-dark: #110F13;
    --form-bg: #1A1D21;
    --border-color: #5C5B5B;
    --text-color: #FFFFFF;
    --text-muted: #9B9C9E;
    --text-highlight: #DE2002;
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-color);
}

/* --- Two-Column Layout --- */
.login-page-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Creates two equal columns */
    min-height: 100vh;
}

.login-image-section {
    background-image: url('assets/login-background.png'); /* Your motorcycle image */
    background-size: cover;
    background-position: center;
}

/* --- Form Section Styling --- */
.login-form-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 60px;
    background-color: var(--bg-dark);
}

.form-header {
    text-align: right;
}

.form-logo {
    height: 83px; /* As per your design */
    width: auto;
}

.form-content {
    max-width: 450px;
    width: 100%;
    margin: auto; /* Centers the form content vertically */
}

.form-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-content .subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.form-content .subtitle .highlight {
    color: var(--text-highlight);
    font-weight: 700;
}

/* --- Form Elements --- */
.input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-wrapper input {
    width: 100%;
    padding: 15px 15px 15px 45px; /* Add padding for the icon */
    background-color: var(--form-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 16px;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--text-highlight);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    cursor: pointer;
}

.forgot-password {
    color: var(--text-highlight);
    text-decoration: none;
}

.btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #DE2002 0%, #42080A 100%);
    color: var(--text-color);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: scale(1.02);
}

.form-footer {
    text-align: center;
    color: var(--text-muted);
}

.form-footer a {
    color: var(--text-highlight);
    font-weight: 600;
    text-decoration: none;
}

/* --- Mobile Responsive --- */
@media (max-width: 900px) {
    .login-page-container {
        grid-template-columns: 1fr; /* Stack to one column on mobile */
    }

    .login-image-section {
        display: none; /* Hide the image on mobile */
    }

    .login-form-section {
        padding: 40px 20px;
    }
}
