/* Princeton Recon Manager - Login Page Styles
   Last updated: 2025-04-08
*/

:root {
    /* Primary colors */
    --primary-color: #1B45A2;
    --primary-dark: #15377e;
    --primary-light: #4169c8;
    
    /* Secondary colors */
    --secondary-color: #e63946;
    --secondary-dark: #c1121f;
    --secondary-light: #ff6b6b;
    
    /* Neutral colors */
    --dark: #212529;
    --gray-dark: #343a40;
    --gray: #6c757d;
    --gray-light: #adb5bd;
    --light: #f8f9fa;
    --white: #ffffff;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--dark);
    overflow-x: hidden;
    background-image: url('https://images.pexels.com/photos/3802510/pexels-photo-3802510.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

/* Brand side styling */
.brand-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-image: url('../images/dealership-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,86,179,0.9) 0%, rgba(0,68,148,0.8) 100%);
}

.brand-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    max-width: 600px;
    text-align: center;
}

.logo-container {
    margin-bottom: 2rem;
}

#brand-logo {
    max-width: 250px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.features {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--white);
}

.feature-text h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--white);
}

.feature-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Login form styling */
.login-container {
    width: 100%;
    max-width: 650px;
    padding: 1.5rem;
    margin: 1rem auto;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.9);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.form-label {
    font-weight: 500;
    color: var(--gray-dark);
}

.input-group-text {
    background-color: var(--light);
    border-right: none;
}

.form-control {
    border-left: none;
    padding-left: 0;
}

.form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced legibility for links and text */
.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    display: inline-block;
}

.forgot-password:hover {
    color: var(--primary-dark);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-support {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    display: inline-block;
}

.contact-support:hover {
    color: var(--secondary-dark);
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Copyright text styling */
.text-muted {
    color: #333 !important;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 1rem;
}

/* Modal styling */
.modal-content {
    border: none;
    border-radius: 10px;
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--white);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    color: var(--white);
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .login-container {
        padding: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Animation for form elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease-out forwards;
}

.form-group {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

.form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.btn-primary {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.4s forwards;
}
