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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    background: #fff;
}

.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* LEFT SIDE - CART IMAGE ONLY */
.auth-image {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, #FDB813 0%, #FFA500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 35% center;
}

/* SVG Cart Styling */
#cart-svg {
    width: 85%;
    height: 85%;
    pointer-events: none;
}

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

/* RIGHT SIDE - CLEAN WHITE FORM */
.auth-form {
    flex: 0 0 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 3rem;
    background: #ffffff;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
}

.brand-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-with-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.brand-logo-img {
    max-width: 220px;
    height: auto;
    margin: 0 auto 0.3rem auto;
    display: block;
    mix-blend-mode: multiply;
}

.wheat-icon {
    width: 60px;
    height: 75px;
}

.brand-title {
    font-family: 'Hind', 'Noto Sans Devanagari', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #D2691E;
    margin-bottom: 0;
    letter-spacing: 0;
    line-height: 1.2;
}

.brand-tagline {
    color: #8d6e63;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.welcome-text {
    margin-bottom: 1.5rem;
}

.welcome-text h2 {
    font-size: 1.6rem;
    color: #212121;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.welcome-text p {
    color: #757575;
    font-size: 0.9rem;
    font-weight: 500;
}

form {
    width: 100%;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: #424242;
    font-weight: 600;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #9e9e9e;
    z-index: 1;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: #fafafa;
    font-weight: 500;
    color: #212121;
}

.input-group input:focus {
    outline: none;
    border-color: #8d6e63;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(141, 110, 99, 0.1);
}

.input-group input::placeholder {
    color: #bdbdbd;
    font-weight: 400;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2rem;
    color: #9e9e9e;
    z-index: 2;
}

.password-toggle:hover {
    color: #757575;
}

.btn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.8rem;
    box-shadow: 0 4px 15px rgba(141, 110, 99, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(141, 110, 99, 0.4);
}

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

.switch {
    text-align: center;
    margin-top: 2rem;
    color: #757575;
    font-size: 0.9rem;
    font-weight: 500;
}

.switch a {
    color: #8d6e63;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.switch a:hover {
    color: #6d4c41;
    text-decoration: underline;
}

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

    .auth-image {
        flex: 0 0 40vh;
        min-height: 250px;
    }

    .auth-image img {
        max-width: 60%;
        max-height: 60%;
    }

    .auth-form {
        flex: 1;
        padding: 2rem;
        flex: 0 0 auto;
    }

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

    .welcome-text h2 {
        font-size: 1.5rem;
    }

    .brand-logo-img {
        max-width: 180px;
    }
}

@media (max-width: 640px) {
    .auth-image {
        flex: 0 0 200px;
        min-height: 200px;
    }

    .auth-image img {
        max-width: 70%;
        max-height: 70%;
    }

    .auth-form {
        padding: 1.5rem 1.25rem;
    }

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

    .brand-tagline {
        font-size: 0.65rem;
    }

    .welcome-text h2 {
        font-size: 1.3rem;
    }

    .welcome-text p {
        font-size: 0.85rem;
    }

    .brand-logo-img {
        max-width: 160px;
    }

    .wheat-icon {
        width: 50px;
        height: 65px;
    }

    .input-group {
        margin-bottom: 0.9rem;
    }

    .input-group label {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
    }

    .input-group input {
        padding: 0.7rem 1rem 0.7rem 2.8rem;
        font-size: 0.85rem;
    }

    .input-icon {
        left: 0.85rem;
        font-size: 1.1rem;
    }

    .password-toggle {
        right: 0.85rem;
        font-size: 1.1rem;
    }

    .btn {
        padding: 0.75rem;
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }

    .switch {
        margin-top: 1.5rem;
        font-size: 0.85rem;
    }

    .alert {
        padding: 0.85rem;
        font-size: 0.85rem;
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .auth-image {
        flex: 0 0 180px;
        min-height: 180px;
    }

    .auth-form {
        padding: 1.2rem 1rem;
    }

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

    .welcome-text h2 {
        font-size: 1.2rem;
    }

    .welcome-text p {
        font-size: 0.8rem;
    }

    .brand-logo-img {
        max-width: 140px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .input-group input,
    .btn {
        min-height: 48px;
    }

    .password-toggle,
    .input-icon {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn:active {
        transform: translateY(-1px);
        opacity: 0.9;
    }

    /* Remove hover effects on touch devices */
    .btn:hover {
        transform: none;
    }
}

/* Landscape mobile devices */
@media (max-width: 968px) and (orientation: landscape) {
    .auth-container {
        flex-direction: row;
    }

    .auth-image {
        flex: 0 0 40%;
    }

    .auth-form {
        flex: 1;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .auth-form {
        padding: 1rem 0.85rem;
    }

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

    .welcome-text {
        margin-bottom: 1.2rem;
    }

    .input-group {
        margin-bottom: 0.8rem;
    }
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert::before {
    font-size: 1.3rem;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 2px solid #ef9a9a;
}

.alert-error::before {
    content: '⚠️';
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 2px solid #a5d6a7;
}

.alert-success::before {
    content: '✓';
}

/* Scrollbar */
.auth-form::-webkit-scrollbar {
    width: 6px;
}

.auth-form::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.auth-form::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 3px;
}

.auth-form::-webkit-scrollbar-thumb:hover {
    background: #9e9e9e;
}
