/* Premium Split-Screen Login Styles */
body.login-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    background-color: var(--dark-bg);
}

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

.split-left {
    flex: 1;
    background: url('../images/hero1.png') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.split-left::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(18,18,18,0.8) 0%, rgba(255,140,0,0.4) 100%);
}

.split-left-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem;
    max-width: 600px;
    animation: fadeInLeft 1s ease forwards;
}

.split-left-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.split-left-content p {
    font-size: 1.2rem;
    color: #e0e0e0;
}

.split-right {
    flex: 1;
    background-color: var(--dark-surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 0 40px rgba(255,140,0,0.1);
    backdrop-filter: blur(10px);
    animation: fadeInRight 1s ease forwards;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-social img {
    width: 20px;
    height: 20px;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.divider:not(:empty)::before {
    margin-right: .25em;
}

.divider:not(:empty)::after {
    margin-left: .25em;
}

.auth-form .form-control {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 8px;
}

.auth-form .form-control:focus {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.2);
}

.auth-form .form-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.form-options a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.form-options a:hover {
    color: #ffd000;
}

.btn-auth {
    width: 100%;
    padding: 0.9rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--primary-color), #ff5e00);
    border: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s;
}

.auth-switch a:hover {
    color: #ffb700;
    text-decoration: underline;
}

.back-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.back-home:hover {
    opacity: 1;
    transform: translateX(-5px);
    color: white;
}

/* Toggle Views */
#registerView {
    display: none;
}

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

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

@media (max-width: 991px) {
    .split-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    .split-left {
        flex: none;
        height: 30vh;
        min-height: 250px;
    }
    .split-left-content h1 {
        font-size: 2rem;
    }
    .split-right {
        flex: 1;
        padding: 2rem 1rem;
    }
    .back-home {
        top: 1rem;
        left: 1rem;
    }
}
