/* Import Google Font for clean modern typography */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Define color variables for theme consistency */
:root {
    --primary-teal: #007A5E;
    --primary-hover: #006049;
    --navy: #0B2545;
    --text-dark: #0B2545;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
}

/* Apply box sizing to all elements */
* {
    box-sizing: border-box;
}

/* Set page background with blurred PSP gate image */
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background: url('../images/gerbang_psp.jpg') center/cover no-repeat fixed;
    position: relative;
}

/* Dark overlay effect over background image */
body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 37, 69, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Center login container on page */
.login-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Compact login card container */
.login-shell {
    width: min(860px, 100%);
    min-height: 480px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Left side panel styling with PSP gate background */
.login-visual-side {
    position: relative;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: url('../images/gerbang_psp.jpg') center/cover no-repeat;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

/* Dark gradient overlay for text readability on left panel */
.login-visual-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(11, 37, 69, 0.85) 100%);
}

/* Text overlay content positioning */
.visual-copy-overlay {
    position: relative;
    z-index: 3;
    color: #ffffff;
}

/* Left side title styling */
.visual-copy-overlay h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 4px 0;
}

/* Left side subtitle styling */
.visual-copy-overlay p {
    font-size: 0.82rem;
    color: #E2E8F0;
    margin: 0;
}

/* Right side form container */
.login-form-side {
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

/* Set width limit for form elements */
.login-form-wrap {
    width: 100%;
    max-width: 320px;
}

/* Center aligned logos header */
.brand-header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
    width: 100%;
}

/* Politeknik logo size */
.psp-logo {
    height: 38px;
    object-fit: contain;
}

/* ProfileX logo size */
.profilex-logo {
    height: 36px;
    object-fit: contain;
}

/* Center aligned header text */
.login-heading {
    text-align: center;
}

/* Welcome Back title styling */
.login-heading h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 4px 0;
}

/* Form description text styling */
.login-heading p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 18px 0;
}

/* Stack form fields vertically */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Label styling for input fields */
.login-field label {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
    font-size: 0.74rem;
    font-weight: 700;
}

/* Input field wrapper with rounded border */
.login-input-wrap {
    min-height: 40px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

/* Highlight input border on focus */
.login-input-wrap:focus-within {
    border-color: var(--primary-teal);
}

/* Input icon styling */
.login-input-wrap i {
    color: #94A3B8;
    font-size: 0.9rem;
}

/* Clean text input styling */
.login-input-wrap input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.8rem;
    color: var(--navy);
}

/* Show/hide password button styling */
.password-toggle {
    border: 0;
    background: transparent;
    color: #94A3B8;
    cursor: pointer;
    font-size: 0.85rem;
}

/* Submit button styling */
.login-submit {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: var(--primary-teal);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* Submit button hover effect */
.login-submit:hover {
    background: var(--primary-hover);
}

/* Form footer text styling */
.login-footer {
    text-align: center;
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* Responsive layout adjustments for mobile screens */
@media (max-width: 650px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .login-visual-side {
        display: none;
    }
}