/* ==================== Auth Split Layout ==================== */
:root {
    --auth-primary: #0066cc;
    --auth-primary-dark: #0052a3;
    --auth-bg-light: #ffffff;
    --auth-bg-dark: #1a202c;
    --auth-text-light: #2d3748;
    --auth-text-dark: #e2e8f0;
    --auth-border-light: #e2e8f0;
    --auth-border-dark: #4a5568;
    --auth-input-bg-light: #f7fafc;
    --auth-input-bg-dark: #2d3748;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.auth-split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--auth-bg-light);
}

/* ==================== Visual Side (Left) ==================== */
.auth-visual-side {
    flex: 1;
    background: linear-gradient(135deg, #0066cc 0%, #004080 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    color: white;
    overflow: hidden;
}

.auth-visual-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.visual-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInRight 0.8s ease-out;
}

.logo-large {
    margin-bottom: 30px;
    color: white;
}

.visual-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.visual-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.features-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.features-list li svg {
    margin-left: 15px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

/* ==================== Form Side (Right) ==================== */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background-color: var(--auth-bg-light);
    position: relative;
}

.auth-card-minimal {
    width: 100%;
    max-width: 450px;
    animation: fadeInLeft 0.8s ease-out;
}

.auth-header-minimal {
    margin-bottom: 40px;
    text-align: right;
}

.auth-header-minimal h2 {
    font-size: 2rem;
    color: var(--auth-text-light);
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-header-minimal p {
    color: #718096;
    font-size: 1rem;
}

/* ==================== Form Elements ==================== */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--auth-text-light);
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    right: 16px;
    color: #a0aec0;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 50px 14px 16px; /* Right padding for icon */
    border: 2px solid var(--auth-border-light);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: var(--auth-text-light);
    background: var(--auth-input-bg-light);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--auth-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.form-group input:focus + .input-icon svg,
.input-wrapper:focus-within .input-icon {
    color: var(--auth-primary);
}

/* ==================== Buttons ==================== */
.btn-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-lg {
    padding: 16px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--auth-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.btn-primary:hover {
    background: var(--auth-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--auth-border-light);
    color: var(--auth-text-light);
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
}

.btn-outline:hover {
    border-color: var(--auth-primary);
    color: var(--auth-primary);
    background: rgba(0, 102, 204, 0.05);
}

/* ==================== Divider ==================== */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #a0aec0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--auth-border-light);
}

.divider span {
    padding: 0 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==================== Footer ==================== */
.auth-footer-minimal {
    margin-top: 30px;
    text-align: center;
}

.auth-footer-minimal p {
    margin-bottom: 10px;
    color: #718096;
}

.auth-footer-minimal a {
    color: var(--auth-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer-minimal a:hover {
    color: var(--auth-primary-dark);
    text-decoration: underline;
}

.back-link {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==================== Alerts ==================== */
.alert-box {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-box.info {
    background-color: #fffaf0;
    border: 1px solid #fbd38d;
    color: #9c4221;
}

/* ==================== Animations ==================== */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* ==================== Responsive ==================== */
@media (max-width: 900px) {
    .auth-split-layout {
        flex-direction: column;
    }
    
    .auth-visual-side {
        flex: none;
        padding: 40px 20px;
        min-height: 300px;
    }
    
    .visual-content h1 {
        font-size: 2.5rem;
    }
    
    .auth-form-side {
        padding: 30px 20px;
        flex: 1;
    }
    
    .auth-card-minimal {
        max-width: 100%;
    }
}

/* ==================== Dark Mode ==================== */
body.dark-mode .auth-split-layout {
    background-color: var(--auth-bg-dark);
}

body.dark-mode .auth-form-side {
    background-color: var(--auth-bg-dark);
}

body.dark-mode .auth-header-minimal h2 {
    color: var(--auth-text-dark);
}

body.dark-mode .form-group label {
    color: var(--auth-text-dark);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select {
    background-color: var(--auth-input-bg-dark);
    border-color: var(--auth-border-dark);
    color: var(--auth-text-dark);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus {
    border-color: #63b3ed;
    background-color: #2d3748;
}

body.dark-mode .btn-outline {
    border-color: var(--auth-border-dark);
    color: var(--auth-text-dark);
}

body.dark-mode .btn-outline:hover {
    border-color: #63b3ed;
    color: #63b3ed;
}

body.dark-mode .divider::before,
body.dark-mode .divider::after {
    border-color: var(--auth-border-dark);
}

body.dark-mode .alert-box.info {
    background-color: rgba(251, 211, 141, 0.1);
    border-color: rgba(251, 211, 141, 0.3);
    color: #fbd38d;
}

/* ==================== Toast Notifications (Top Center) ==================== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: auto;
}

.toast {
    background: white;
    color: #333;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 90vw;
    pointer-events: auto;
    animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    border: 1px solid rgba(0,0,0,0.05);
    font-weight: 500;
    justify-content: center;
}

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-success { border-right: 4px solid var(--secondary); border-left: none; }
.toast-error { border-right: 4px solid var(--danger); border-left: none; }
.toast-warning { border-right: 4px solid var(--warning); border-left: none; }
.toast-info { border-right: 4px solid var(--primary); border-left: none; }

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

/* Dark Mode Toasts */
body.dark-mode .toast {
    background: #1e293b;
    color: #f8fafc;
    border-color: #334155;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
