/* ===================================
   REBAHAN AUTHENTICATION SYSTEM (LOGIN CSS)
   Theme: Plus Jakarta Sans & Biru Ceria Theme
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Biru Ceria Palette (User Specification) */
    --blue-light: #e6f4ff;
    --blue-light-hover: #d9efff;
    --blue-light-active: #b0ddfe;
    --blue-normal: #0092fc;
    --blue-normal-hover: #0083e3;
    --blue-normal-active: #0075ca;
    --blue-dark: #006ebd;
    --blue-dark-hover: #005897;
    --blue-dark-active: #004271;
    --blue-darker: #003358;

    --primary-blue: #0092fc;
    --dark-blue: #006ebd;
    --navy-blue: #003358;
    --brand-dark: #004271;
    --light-blue: #e6f4ff;
    --lighter-blue: #F8FAFC;
    --white: #FFFFFF;
    --gray-light: #F1F5F9;
    --gray-medium: #64748B;
    --gray-dark: #334155;
    --border-color: #E2E8F0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px rgba(0, 146, 252, 0.15);
    --shadow-lg: 0 12px 36px rgba(0, 51, 88, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--white);
    color: var(--gray-dark);
}

/* Back to Home Floating Button */
.btn-back-home {
    position: fixed;
    top: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 999;
}

.btn-back-home:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateX(-3px);
}

/* Container Split Screen */
.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Brand Section (Left Side - Animated Orbs & Textured Grid) */
.login-brand-section {
    flex: 1.1;
    background: linear-gradient(135deg, #0092fc 0%, #0075ca 45%, #005897 100%);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(135deg, #0092fc 0%, #0075ca 45%, #005897 100%);
    background-size: 24px 24px, 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 60px;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

/* Gelembung Bulat Glowing & Floating Orbs Animation */
.login-brand-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    animation: floatOrb1 10s ease-in-out infinite;
    pointer-events: none;
}

.login-brand-section::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -15%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.35) 0%, rgba(96, 165, 250, 0) 70%);
    border-radius: 50%;
    animation: floatOrb2 12s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translateY(0px) scale(1) rotate(0deg); }
    50% { transform: translateY(-25px) scale(1.08) rotate(10deg); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translateY(0px) scale(1) rotate(0deg); }
    50% { transform: translateY(20px) scale(1.1) rotate(-10deg); }
}

.brand-content {
    position: relative;
    z-index: 2;
    max-width: 460px;
    animation: slideInLeft 0.8s ease-out;
}

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

.brand-logo {
    max-width: 75px;
    height: auto;
    margin-bottom: 20px;
    animation: floatLogo 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
}

@keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.brand-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 51, 88, 0.35);
}

.brand-subtitle {
    display: inline-block;
    background: rgba(0, 51, 88, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #FFFFFF;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 51, 88, 0.2);
}

.brand-description {
    font-size: 0.98rem;
    color: #FFFFFF;
    opacity: 0.95;
    margin-bottom: 30px;
    line-height: 1.65;
    text-shadow: 0 1px 4px rgba(0, 51, 88, 0.3);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(0, 51, 88, 0.35);
    border-radius: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 51, 88, 0.15);
}

.feature-item:hover {
    background: rgba(0, 51, 88, 0.5);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateX(6px);
}

.feature-item i {
    font-size: 1.15rem;
    color: #FFFFFF !important;
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0, 51, 88, 0.4);
}

/* Form Section (Right Side) */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lighter-blue);
    padding: 20px;
    height: 100vh;
    overflow-y: auto;
}

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

.form-container {
    background: var(--white);
    padding: 36px 38px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: slideInRight 0.8s ease-out;
}

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

.form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy-blue);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 0.88rem;
    color: var(--gray-medium);
    margin-bottom: 24px;
    font-weight: 500;
}

.login-form {
    width: 100%;
}

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

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--navy-blue);
    font-size: 0.85rem;
}

.form-label i {
    margin-right: 6px;
    color: var(--primary-blue);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-control {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.88rem;
    transition: all 0.25s ease;
    background-color: var(--white);
    color: var(--gray-dark);
    font-weight: 500;
    height: 44px;
}

.form-control::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.form-control:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3.5px rgba(0, 146, 252, 0.15);
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #94A3B8;
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.25s ease;
}

.form-control:focus ~ .input-icon {
    color: var(--primary-blue);
}

.form-text {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--gray-medium);
}

/* Password Input Group */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group .form-control {
    padding-right: 42px;
}

.btn-toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94A3B8;
    font-size: 0.95rem;
    padding: 6px;
    transition: all 0.2s ease;
}

.btn-toggle-password:hover {
    color: var(--primary-blue);
}

/* Options (Remember & Forgot) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    margin-top: 14px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.form-check-label {
    font-size: 0.85rem;
    color: var(--gray-dark);
    cursor: pointer;
    font-weight: 500;
}

.forgot-password-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.forgot-password-link:hover {
    text-decoration: underline;
    color: var(--blue-dark);
}

/* Login Buttons Side-by-Side */
.login-button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 8px;
}

@media (max-width: 480px) {
    .login-button-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.btn-login {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #0092fc 0%, #006ebd 100%);
    color: var(--white);
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 146, 252, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 146, 252, 0.45);
    background: linear-gradient(135deg, #0083e3 0%, #005897 100%);
}

.btn-login-outline {
    width: 100%;
    height: 46px;
    background: transparent;
    color: #0092fc;
    border: 2px solid #0092fc;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 8px;
    white-space: nowrap;
}

.btn-login-outline:hover {
    background: #e6f4ff;
    border-color: #0083e3;
    color: #0083e3;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 146, 252, 0.15);
}

.btn-login-outline i {
    font-size: 1rem;
}

.signup-link {
    text-align: center;
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--gray-medium);
}

.signup-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
}

.signup-link a:hover {
    text-decoration: underline;
    color: var(--blue-dark);
}

.login-brand-section {
    order: 1;
    flex: 1;
}

.login-form-section {
    order: 2;
    flex: 1;
}

/* Responsive Design */
@media (max-width: 992px) {
    html, body {
        height: auto;
        overflow-y: auto;
    }

    .btn-back-home {
        top: 14px;
        left: 14px;
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
        background: #ffffff;
        color: var(--primary-blue);
        border: 1.5px solid #b0ddfe;
        box-shadow: 0 4px 12px rgba(0, 146, 252, 0.15);
        z-index: 1000;
    }

    .btn-back-home:hover {
        background: var(--blue-light);
        color: var(--navy-blue);
    }

    .login-container {
        display: flex;
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    .login-form-section {
        order: 1 !important;
        height: auto;
        padding: 65px 16px 28px !important; /* Top padding ensures floating back button NEVER overlaps title or form */
    }

    .login-brand-section {
        order: 2 !important;
        padding: 30px 20px;
        flex: none;
    }

    .form-container {
        padding: 24px 18px;
    }

    .brand-title {
        font-size: 1.4rem;
    }
}