/* Standalone 50/50 Split Layout */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
}

.auth-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Sidebar Pane (Left 50%) */
.auth-sidebar {
    position: relative;
    flex: 0 0 50%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.brand-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.brand-logo {
    max-width: 250px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

/* Content Pane (Right 50%) */
.auth-content {
    flex: 0 0 50%;
    background: #fff;
    display: flex;
    align-items: flex-start;
    /* Better alignment for scrollable forms */
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow-y: auto;
    /* Enable vertical scroll */
    max-height: 100vh;
    /* Contain to viewport height */
}

.top-nav-register {
    position: absolute;
    top: 40px;
    right: 40px;
    color: #777;
    font-size: 14px;
    z-index: 10;
}

.sign-in-link-top {
    color: #990103;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    transition: all 0.3s ease;
}

.sign-in-link-top:hover {
    text-decoration: underline;
    color: #7a0101;
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card-wide {
    max-width: 700px;
}

.login-header {
    margin-bottom: 45px;
}

.login-header h2 {
    color: #333;
    margin-bottom: 12px;
    font-weight: 700;
}

.login-header p {
    color: #777;
}

/* Form Styles */
.premium-form .form-group {
    margin-bottom: 25px;
}

.premium-form label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.premium-input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #e1e1e1;
    background: #fdfdfd;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.premium-input:focus {
    border-color: #ccab5e;
    background: #fff;
    box-shadow: 0 4px 15px rgba(204, 171, 94, 0.1);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.form-footer a {
    color: #ccab5e;
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Buttons */
.btn-premium {
    width: 100%;
    padding: 15px;
    background: #990103;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-premium:hover {
    background: #7a0101;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(153, 1, 3, 0.3);
}

.register-link {
    text-align: center;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #f0f0f0;
    color: #888;
}

.register-link a {
    color: #990103;
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}

/* Error Messages */
.alert-premium {
    padding: 18px;
    background: #fff4f4;
    border-left: 5px solid #990103;
    color: #990103;
    margin-bottom: 30px;
    border-radius: 4px;
}

.error-msg {
    display: block;
    color: #990103;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 991px) {
    .auth-wrapper {
        flex-direction: column;
        height: auto;
    }

    .auth-sidebar {
        flex: 0 0 350px;
        width: 100%;
    }

    .auth-content {
        flex: 1;
        width: 100%;
        padding: 60px 20px;
    }
}