:root {
    --am-primary: #E8663D;
    --am-primary-hover: #d25532;
}

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

body.vendor-login-page {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    background: #fdfdfd;
}

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

.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #fff;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 450px;
    animation: fadeInUp 0.6s ease-out;
}

.rate-limit-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.rate-limit-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #842029;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.rate-limit-warning[hidden],
.rate-limit-error[hidden] {
    display: none !important;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-section img {
    height: 45px;
    margin-bottom: 10px;
}

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

.form-label {
    font-weight: 500;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    display: block;
    width: 100%;
    height: 48px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--am-primary);
    box-shadow: 0 0 0 3px rgba(232, 102, 61, 0.1);
    outline: none;
}

.btn-primary {
    height: 48px;
    background: var(--am-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background: var(--am-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 102, 61, 0.3);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #999;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    padding: 0 16px;
}

.switch-form {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 14px;
}

.switch-form a {
    color: var(--am-primary);
    text-decoration: none;
    font-weight: 600;
}

.switch-form a:hover {
    text-decoration: underline;
}

.auth-brand-side {
    flex: 1;
    background: linear-gradient(135deg, var(--am-primary) 0%, var(--am-primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: flex-start;
    overflow: hidden;
}

.auth-brand-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 500px;
}

.brand-content > i {
    font-size: 80px;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #fff;
    display: inline-block;
}

.brand-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #fff;
}

.brand-content p {
    font-size: 18px;
    opacity: 0.95;
    line-height: 1.6;
    color: #fff;
}

.features {
    margin-top: 40px;
    display: grid;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.feature-text h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.feature-text p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    color: #fff;
}

#am-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 12px 20px;
    border-radius: 8px;
    background: #282828;
    color: #fff;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    max-width: calc(100vw - 40px);
}

#am-toast.show {
    opacity: 1;
    transform: translateY(0);
}

#am-toast.success {
    background: #282828;
}

#am-toast.error {
    background: #c0392b;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .auth-brand-side {
        display: none;
    }
}
