/* public/css/auth.css - Improved Split Screen Design with Better Mobile View */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    height: 100vh;
    overflow: hidden;
}

.split-container {
    display: flex;
    height: 100vh;
}

/* Left Section - Branding */
.left-section {
    flex: 1;
    background: linear-gradient(135deg, #4EADB5 0%, #3D95A0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.left-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.left-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 1;
    color: white;
    max-width: 500px;
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.brand-logo {
    width: 70px;
    height: 70px;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.brand-title {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-go {
    color: white;
}

.brand-clear {
    color: #E8F5F6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-description {
    margin-bottom: 60px;
}

.brand-description h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-description p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.vehicle-illustration {
    margin-top: 80px;
    text-align: center;
    opacity: 0.95;
}

.vehicle-illustration img {
    width: 350px;
    height: auto;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.25));
    animation: vehicleFloat 4s ease-in-out infinite;
}

@keyframes vehicleFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

/* Right Section - Login Form */
.right-section {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
}

.form-container {
    width: 100%;
    max-width: 450px;
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-title {
    font-size: 34px;
    font-weight: 700;
    color: #0A2647;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 40px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f9fafb;
    color: #111827;
}

.form-input:focus {
    outline: none;
    border-color: #4EADB5;
    background: white;
    box-shadow: 0 0 0 4px rgba(78, 173, 181, 0.12);
}

.form-input::placeholder {
    color: #9ca3af;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    transition: opacity 0.2s;
    line-height: 1;
}

.toggle-password:hover {
    opacity: 0.6;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
    user-select: none;
}

.remember-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4EADB5;
}

.forgot-link {
    font-size: 14px;
    color: #4EADB5;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.forgot-link:hover {
    color: #3D95A0;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: #3D95A0;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.submit-btn:hover {
    background: #02606d;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10, 38, 71, 0.3);
}

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

.form-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 14px;
    color: #6b7280;
}

.form-footer a {
    color: #4EADB5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.form-footer a:hover {
    color: #3D95A0;
}

/* Back Link Styles */
.back-link-top {
    margin-bottom: 24px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4EADB5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.back-btn:hover {
    color: #3D95A0;
    gap: 12px;
}

.back-arrow {
    font-size: 18px;
    transition: transform 0.2s;
}

.back-btn:hover .back-arrow {
    transform: translateX(-3px);
}

/* Security Illustration Styles */
.security-illustration {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.security-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: securityPulse 3s ease-in-out infinite;
}

@keyframes securityPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 8px 30px rgba(255, 255, 255, 0.5));
    }
}

.security-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Alert Messages */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-error ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alert-error li {
    margin-bottom: 5px;
}

.alert-error li:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .split-container {
        flex-direction: column;
    }

    .left-section {
        flex: 0;
        padding: 30px 25px;
        min-height: auto;
    }

    .brand-content {
        max-width: 100%;
    }

    .logo-header {
        margin-bottom: 25px;
    }

    .brand-description {
        margin-bottom: 30px;
    }

    .brand-description h1 {
        font-size: 26px;
    }

    .brand-description p {
        font-size: 14px;
    }

    .vehicle-illustration {
        margin-top: 25px;
    }

    .vehicle-illustration img {
        width: 180px;
    }

    .right-section {
        flex: 1;
        padding: 35px 25px;
    }

    .form-title {
        font-size: 26px;
    }
}

/* Tablet View - 768px */
@media (max-width: 768px) {
    .left-section {
        padding: 25px 20px;
    }

    .logo-header {
        gap: 12px;
        margin-bottom: 20px;
    }

    .brand-logo {
        width: 50px;
        height: 50px;
    }

    .brand-title {
        font-size: 28px;
    }

    .brand-description {
        margin-bottom: 25px;
    }

    .brand-description h1 {
        font-size: 22px;
        margin-bottom: 12px;
    }

    .brand-description p {
        font-size: 13px;
        line-height: 1.5;
    }

    .vehicle-illustration {
        margin-top: 20px;
    }

    .vehicle-illustration img {
        width: 150px;
    }

    .right-section {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 24px;
    }

    .form-subtitle {
        font-size: 13px;
        margin-bottom: 28px;
    }

    .form-options {
        /* flex-direction: column; */
        align-items: flex-start;
        gap: 12px;
    }
}

/* Mobile View - 480px and below */
@media (max-width: 480px) {
    .split-container {
        height: auto;
        min-height: 100vh;
    }

    body {
        overflow: auto;
    }

    /* Hide Left Section on Mobile */
    .left-section {
        display: none;
    }

    /* Form Section Mobile Optimization - Full Width */
    .right-section {
        padding: 40px 20px;
        box-shadow: none;
    }

    .form-container {
        max-width: 100%;
    }

    .form-title {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .form-subtitle {
        font-size: 12px;
        margin-bottom: 24px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .toggle-password {
        font-size: 18px;
        padding: 6px;
    }

    .form-options {
        margin-bottom: 24px;
        gap: 10px;
    }

    .remember-label {
        font-size: 12px;
        gap: 8px;
    }

    .remember-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .forgot-link {
        font-size: 12px;
    }

    .submit-btn {
        padding: 13px;
        font-size: 14px;
        border-radius: 10px;
    }

    .form-footer {
        margin-top: 24px;
        font-size: 12px;
    }

    .alert {
        padding: 12px 14px;
        font-size: 12px;
        margin-bottom: 20px;
    }
}

/* Very Small Screens - 360px and below */
@media (max-width: 360px) {
    .left-section {
        padding: 18px 14px;
    }

    .brand-title {
        font-size: 22px;
    }

    .brand-description h1 {
        font-size: 16px;
    }

    .brand-description p {
        font-size: 11px;
    }

    .vehicle-illustration img {
        width: 100px;
    }

    .right-section {
        padding: 20px 14px;
    }

    .form-title {
        font-size: 20px;
        text-align: center;
    }

    .form-input {
        padding: 11px 12px;
        font-size: 13px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 13px;
    }
}


/* Add this to your existing layout or create a separate CSS file */

