/* assets/css/login.css */

/* Sembunyikan header dan footer standar di halaman login */
.main-header, .main-footer {
    display: none !important;
}

body {
    overflow: hidden; /* Mencegah scroll di halaman login */
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    width: 100%;
}

/* Panel Kiri (Branding) */
.login-branding-panel {
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.branding-overlay {
    background: linear-gradient(to top, rgba(13, 17, 23, 0.8), rgba(37, 99, 235, 0.5));
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 4rem;
    text-align: left;
}

.branding-logo {
    max-width: 200px;
    margin-bottom: 2rem;
}

.branding-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.branding-subtitle {
    font-size: 1.1rem;
    max-width: 450px;
    opacity: 0.9;
}

/* Panel Kanan (Formulir) */
.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--bg-color);
    overflow-y: auto;
}

.form-wrapper {
    width: 100%;
    max-width: 400px;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary-color);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1rem;
    color: var(--text-secondary-color);
    margin-bottom: 2rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.alert-success { background-color: #D1FAE5; color: #065F46; }
.alert-danger { background-color: #FEE2E2; color: #991B1B; }
.alert-info { background-color: #DBEAFE; color: #1E40AF; }


.input-group {
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary-color);
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary-color);
    color: var(--text-primary-color);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 0.5rem;
}

.forgot-password {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}
.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-login:hover {
    background-color: var(--accent-hover-color);
    transform: translateY(-2px);
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary-color);
    margin: 2rem 0;
    font-size: 0.875rem;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.separator:not(:empty)::before {
    margin-right: .5em;
}

.separator:not(:empty)::after {
    margin-left: .5em;
}

.social-login-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.btn-social {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-social:hover {
    background-color: var(--bg-secondary-color);
}

.btn-social .fab {
    font-size: 1.2rem;
}
.btn-social.google .fab { color: #DB4437; }
.btn-social.facebook .fab { color: #4267B2; }

.register-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary-color);
}

.register-link a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}
.register-link a:hover {
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 992px) {
    .login-container {
        grid-template-columns: 1fr;
    }
    .login-branding-panel {
        display: none; /* Sembunyikan panel gambar di layar kecil */
    }
    .login-form-panel {
        padding: 2rem 1.5rem;
    }
}
