/* Modern Auth Page Styles - Warm Neutral Logistics Theme */

:root {
    /* Warm Neutral Palette from Cozy Neutral Retreat */
    --auth-primary: #57534e;
    --auth-primary-dark: #44403c;
    --auth-primary-light: #78716c;
    --auth-gradient-start: #78716c;
    --auth-gradient-end: #a8a29e;
    --auth-text-dark: #0c0a09;
    --auth-text-muted: #78716c;
    --auth-bg-light: #fafaf9;
    --auth-white: #ffffff;
    --auth-border: #e7e5e4;
    --auth-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --auth-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);

    /* Logistics accent colors - muted tones */
    --auth-accent-orange: #c2410c;
    --auth-accent-green: #15803d;
    --auth-accent-beige: #f5f5f4;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    height: 100vh;
    background: var(--auth-bg-light);
}

/* Main Container - Split Screen */
.auth-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Side - Form */
.auth-left {
    flex: 0 0 45%;
    background: var(--auth-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 0 1rem;
}

/* Logo Section */
.auth-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.logo-circle {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--auth-gradient-start), var(--auth-gradient-end));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(87, 83, 78, 0.3);
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--auth-text-dark);
    margin: 0;
    letter-spacing: -0.5px;
}

.logo-text .text-primary {
    color: var(--auth-primary);
}

/* Header Section */
.auth-header {
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--auth-text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--auth-text-muted);
    margin: 0;
}

/* Form Styles */
.auth-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--auth-text-dark);
    margin-bottom: 0.5rem;
}

.modern-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    border: 1.5px solid var(--auth-border);
    border-radius: 10px;
    background: var(--auth-white);
    color: var(--auth-text-dark);
    transition: all 0.2s ease;
    font-family: inherit;
}

.modern-input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(91, 108, 242, 0.1);
    background: var(--auth-white);
}

.modern-input::placeholder {
    color: #94a3b8;
}

/* Button Styles */
.btn-modern {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: var(--auth-primary);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(87, 83, 78, 0.3);
    margin-top: 0.5rem;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(87, 83, 78, 0.4);
    background: var(--auth-primary-dark);
}

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

/* Forgot Password Link */
.forgot-password {
    color: var(--auth-primary);
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

/* Footer */
.auth-footer {
    margin-top: 2rem;
    text-align: center;
}

/* Right Side - Logistics Illustration */
.auth-right {
    flex: 1;
    background: linear-gradient(135deg, #78716c 0%, #a8a29e 50%, #d6d3d1 100%);
    position: relative;
    overflow: hidden;
}

.illustration-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.illustration-content {
    position: relative;
    width: 80%;
    height: 80%;
    max-width: 600px;
}

/* Animated Background Elements */
.bg-element {
    position: absolute;
    border-radius: 20px;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.bg-element-1 {
    width: 200px;
    height: 200px;
    background: white;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bg-element-2 {
    width: 150px;
    height: 150px;
    background: white;
    bottom: 15%;
    right: 15%;
    animation-delay: 7s;
}

.bg-element-3 {
    width: 100px;
    height: 100px;
    background: white;
    top: 50%;
    right: 5%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* Main Illustration */
.main-illustration {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Illustration Cards */
.illustration-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: cardFloat 15s infinite ease-in-out;
}

.card-1 {
    top: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    animation-delay: 0s;
}

.card-2 {
    top: 5%;
    right: 15%;
    width: 90px;
    height: 90px;
    animation-delay: 3s;
}

.card-3 {
    bottom: 20%;
    left: 10%;
    width: 85px;
    height: 85px;
    animation-delay: 6s;
}

.card-4 {
    bottom: 15%;
    right: 8%;
    width: 95px;
    height: 95px;
    animation-delay: 9s;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

/* Device Illustration */
.illustration-device {
    position: relative;
    width: 320px;
    height: 400px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: devicePulse 8s infinite ease-in-out;
}

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

.device-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 16px;
    padding: 1.5rem;
    overflow: hidden;
}

.screen-content {
    height: 100%;
}

.screen-header {
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, rgba(87, 83, 78, 0.3), rgba(120, 113, 108, 0.3));
    border-radius: 8px;
    margin-bottom: 1rem;
}

.screen-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: calc(100% - 60px);
    gap: 0.5rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--auth-primary), var(--auth-primary-light));
    border-radius: 4px 4px 0 0;
    animation: chartGrow 3s infinite ease-in-out;
}

.chart-bar:nth-child(1) {
    animation-delay: 0s;
    background: linear-gradient(180deg, #57534e, #78716c);
}
.chart-bar:nth-child(2) {
    animation-delay: 0.5s;
    background: linear-gradient(180deg, #78716c, #a8a29e);
}
.chart-bar:nth-child(3) {
    animation-delay: 1s;
    background: linear-gradient(180deg, #a8a29e, #d6d3d1);
}
.chart-bar:nth-child(4) {
    animation-delay: 1.5s;
    background: linear-gradient(180deg, #57534e, #78716c);
}

@keyframes chartGrow {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.8;
    }
    50% {
        transform: scaleY(1.1);
        opacity: 1;
    }
}

/* Illustration Icons */
.illustration-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    animation: iconBounce 4s infinite ease-in-out;
}

.icon-1 {
    top: 45%;
    left: 2%;
    animation-delay: 0s;
}

.icon-2 {
    top: 55%;
    right: 5%;
    animation-delay: 2s;
}

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

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-left {
        flex: 0 0 50%;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-left {
        flex: 1;
        min-height: 100vh;
    }

    .auth-right {
        display: none;
    }

    .auth-form-wrapper {
        max-width: 100%;
        padding: 1rem;
    }

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

    body {
        overflow: auto;
    }
}

@media (max-width: 480px) {
    .auth-logo {
        margin-bottom: 2rem;
    }

    .logo-circle {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

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

    .auth-subtitle {
        font-size: 0.9375rem;
    }
}

/* Loading State */
.btn-modern:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--auth-primary);
    outline-offset: 2px;
}
