/* Login Page - Locargrisi */

:root {
    --primary-orange: #E5850E;
    --dark-orange: #C76B00;
    --darker-orange: #A55700;
    --light-orange: #F5A623;
    --bg-dark: #1a1a2e;
    --bg-darker: #16213e;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page-custom {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 50%, #0f0f23 100%);
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
body.login-page-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(229, 133, 14, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(229, 133, 14, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(199, 107, 0, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

/* Car silhouette decoration */
.car-decoration {
    position: absolute;
    bottom: -50px;
    right: -100px;
    width: 600px;
    height: 300px;
    opacity: 0.05;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath fill='%23ffffff' d='M171.3 96H224v96H111.3l30.4-75.9C146.5 104 158.2 96 171.3 96zM272 192V96h81.2c9.7 0 18.9 4.4 25 12l67.2 84H272zm256.2 1L428.2 68c-18.2-22.8-45.8-36-75-36H171.3c-39.3 0-74.6 23.9-89.1 60.3L40.6 196.4C16.8 205.8 0 228.9 0 256V368c0 17.7 14.3 32 32 32H65.3c7.6 45.4 47.1 80 94.7 80s87.1-34.6 94.7-80H385.3c7.6 45.4 47.1 80 94.7 80s87.1-34.6 94.7-80H608c17.7 0 32-14.3 32-32V320c0-65.2-48.8-119-111.8-127zM434.7 368a48 48 0 1 1 90.5 32 48 48 0 1 1 -90.5-32zM160 336a48 48 0 1 1 0 96 48 48 0 1 1 0-96z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
    pointer-events: none;
}

.car-decoration-left {
    position: absolute;
    top: 50px;
    left: -150px;
    width: 400px;
    height: 200px;
    opacity: 0.03;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath fill='%23ffffff' d='M171.3 96H224v96H111.3l30.4-75.9C146.5 104 158.2 96 171.3 96zM272 192V96h81.2c9.7 0 18.9 4.4 25 12l67.2 84H272zm256.2 1L428.2 68c-18.2-22.8-45.8-36-75-36H171.3c-39.3 0-74.6 23.9-89.1 60.3L40.6 196.4C16.8 205.8 0 228.9 0 256V368c0 17.7 14.3 32 32 32H65.3c7.6 45.4 47.1 80 94.7 80s87.1-34.6 94.7-80H385.3c7.6 45.4 47.1 80 94.7 80s87.1-34.6 94.7-80H608c17.7 0 32-14.3 32-32V320c0-65.2-48.8-119-111.8-127zM434.7 368a48 48 0 1 1 90.5 32 48 48 0 1 1 -90.5-32zM160 336a48 48 0 1 1 0 96 48 48 0 1 1 0-96z'/%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
    transform: scaleX(-1);
    pointer-events: none;
}

/* Main Container */
.login-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    margin: 20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 80px var(--shadow-color);
    position: relative;
    z-index: 1;
}

/* Left Panel - Branding */
.login-branding {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 50%, var(--darker-orange) 100%);
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.branding-content {
    position: relative;
    z-index: 1;
}

.logo-container {
    margin-bottom: 30px;
}

.logo-container img {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.features-list li i {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Car illustration */
.car-illustration {
    margin-top: 40px;
    font-size: 80px;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Right Panel - Form */
.login-form-panel {
    flex: 1;
    background: var(--card-bg);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.form-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 0.95rem;
}

.login-form .form-group {
    margin-bottom: 25px;
    position: relative;
}

.login-form label {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.login-form .input-wrapper {
    position: relative;
}

.login-form .input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.login-form .form-control {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.login-form .form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(229, 133, 14, 0.1);
}

.login-form .form-control:focus + i,
.login-form .input-wrapper:focus-within i {
    color: var(--primary-orange);
}

.login-form .form-control::placeholder {
    color: #aaa;
}

/* Remember checkbox */
.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.remember-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-orange);
    cursor: pointer;
}

.remember-check span {
    font-size: 0.9rem;
    color: #555;
}

/* Submit button */
.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(229, 133, 14, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 133, 14, 0.4);
    background: linear-gradient(135deg, var(--dark-orange) 0%, var(--darker-orange) 100%);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login i {
    margin-left: 8px;
}

/* Footer text */
.login-footer {
    margin-top: 40px;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

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

/* Mobile styles */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        max-width: 400px;
        min-height: auto;
        margin: 10px;
    }

    .login-branding {
        padding: 40px 30px;
    }

    .brand-title {
        font-size: 2rem;
    }

    .features-list {
        display: none;
    }

    .car-illustration {
        display: none;
    }

    .login-form-panel {
        padding: 40px 30px;
    }

    .car-decoration,
    .car-decoration-left {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-branding {
        padding: 30px 20px;
    }

    .brand-title {
        font-size: 1.6rem;
    }

    .brand-subtitle {
        font-size: 0.9rem;
    }

    .login-form-panel {
        padding: 30px 20px;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }
}

/* Loading overlay */
.login-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.login-loading.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
