/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px; /* base font lebih kecil agar proporsional */
}

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

/* ==================== KOLOM KIRI ==================== */
.info-section {
    width: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 28px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 100%;
    max-width: 420px;
    text-align: left;
}

.logo h2 {
    font-size: 1.5rem;
    color: #0047AB;
    margin-bottom: 20px;
    text-align: left;
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 420px;
    text-align: left;
}

.info-content h1 {
    font-size: 1.6rem;
    color: #333;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.info-content .subtitle {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.illustration {
    width: 100%;
    max-width: 340px;
    margin-top: 20px;
}

.illustration img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ==================== KOLOM KANAN ==================== */
.form-section {
    width: 50%;
    background: linear-gradient(135deg, #0047AB 0%, #003580 100%);
    color: white;
    padding: 28px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-wrapper {
    width: 100%;
    max-width: 360px;
}

/* Welcome Header */
.welcome-header {
    margin-bottom: 24px;
    text-align: left;
}

.welcome-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: white;
    letter-spacing: -1px;
}

.welcome-header p {
    font-size: 1rem;
    margin: 0 0 6px 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.welcome-header .subtitle-form {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
    display: block;
}

/* Alert Messages */
.alert {
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
}

.alert i {
    font-size: 1rem;
}

.alert-error {
    background-color: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ffcccc;
}

.alert-success {
    background-color: rgba(46, 204, 113, 0.2);
    border: 1px solid rgba(46, 204, 113, 0.5);
    color: #b4f0d4;
}

/* Form Styles */
.login-form {
    margin-top: 8px;
}

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

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.875rem;
    font-weight: 500;
    color: white;
}

.form-group label i {
    margin-right: 5px;
    font-size: 0.82rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 0.875rem;
    background-color: white;
    color: #333;
    box-shadow: 4px 4px 0px 0px #FF923C;
    transition: all 0.3s ease;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 46px;
}

.toggle-password {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #0047AB;
}

/* Focus */
.form-group input:focus {
    box-shadow: 6px 6px 0px 0px #FF923C;
    transform: translate(-2px, -2px);
    background-color: #fffef8;
}

.form-group input::placeholder {
    color: #aaa;
    font-size: 0.82rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.82rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
}

.remember-me input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

.forgot-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #FF923C;
    text-decoration: underline;
}

/* Login Button */
.login-button {
    width: 100%;
    padding: 13px;
    background-color: #FF6B2C;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
    box-shadow: 0 4px 15px rgba(255, 107, 44, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-button:hover {
    background-color: #e85a1b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 44, 0.4);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(255, 107, 44, 0.3);
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.form-footer p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-footer a {
    color: #FF923C;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.form-footer a:hover {
    color: #FF6B2C;
    text-decoration: underline;
}

/* ==================== RESPONSIVE: TABLET (≤ 1024px) ==================== */
@media (max-width: 1024px) {
    .info-section,
    .form-section {
        padding: 24px 28px;
    }

    .welcome-header h1 {
        font-size: 2rem;
    }

    .info-content h1 {
        font-size: 1.35rem;
    }

    .form-wrapper {
        max-width: 320px;
    }

    .illustration {
        max-width: 280px;
    }
}

/* ==================== RESPONSIVE: MOBILE (≤ 768px) ==================== */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .info-section,
    .form-section {
        width: 100%;
        padding: 28px 24px;
    }

    .info-section {
        min-height: auto;
        padding-bottom: 24px;
    }

    .form-section {
        min-height: 60vh;
        padding-top: 32px;
        padding-bottom: 32px;
    }

    .form-wrapper {
        max-width: 100%;
    }

    .welcome-header h1 {
        font-size: 2rem;
    }

    .info-content h1 {
        font-size: 1.3rem;
        text-align: center;
    }

    .info-content .subtitle {
        text-align: center;
    }

    .logo h2 {
        text-align: center;
    }

    .illustration {
        max-width: 240px;
    }
}

/* ==================== RESPONSIVE: SMALL MOBILE (≤ 480px) ==================== */
@media (max-width: 480px) {
    .form-section {
        padding: 24px 18px;
    }

    .welcome-header h1 {
        font-size: 1.8rem;
    }

    .welcome-header p {
        font-size: 0.9rem;
    }

    .form-group input {
        padding: 11px 13px;
        font-size: 0.85rem;
    }

    .login-button {
        padding: 12px;
        font-size: 0.9rem;
    }

    .info-content h1 {
        font-size: 1.15rem;
    }

    .logo h2 {
        font-size: 1.3rem;
    }
}
