/* ========================================
   KAR Auth - Modern Premium Login/Signup
   ======================================== */

:root {
    --auth-bg-gradient: linear-gradient(135deg, #D32F2F 0%, #1a1a1a 100%);
    --auth-card-bg: rgba(255, 255, 255, 0.95);
    --auth-primary: #D32F2F;
    --auth-primary-hover: #B71C1C;
    --text-primary: #1a1a1a;
    --text-secondary: #6C757D;
}

body {
    background: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

/* Ensure footer stays at bottom and content facilitates centering */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 2rem 0;
}

/* Navbar transparency for auth pages if desired, or keep default. 
   For now, we let standard navbar sit on top. */

/* Override container for auth pages */
.container {
    width: 100%;
    max-width: 100%;
    /* Allow full width for centering wrapper */
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Auth Card */
.auth-card {
    background: var(--auth-card-bg);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.auth-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
}

.auth-logo {
    width: 60px;
    height: 60px;
    background: #fb1819;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-body {
    padding: 2rem;
}

/* Modern Inputs */
.form-floating {
    position: relative;
    margin-bottom: 1.25rem;
}

.form-floating>.form-control {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #f7fafc;
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-floating>.form-control:focus {
    border-color: var(--auth-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

.form-floating>label {
    padding: 1rem 0.75rem;
    color: var(--text-secondary);
}

/* Auth Buttons */
.btn-auth {
    background: #fb191a;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(251, 25, 26, 0.25);
}

.btn-auth:hover {
    background: #fb191a;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(251, 25, 26, 0.3);
    color: white;
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-link {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--auth-primary-hover);
    text-decoration: underline;
}

/* Checkbox */
.custom-checkbox .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
    border-radius: 5px;
    border: 2px solid #cbd5e0;
}

.custom-checkbox .form-check-input:checked {
    background-color: var(--auth-primary);
    border-color: var(--auth-primary);
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
    .auth-card {
        border-radius: 15px;
        margin: 1rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .auth-body {
        padding: 1.5rem;
    }
}