/* ============================================================
   SIn-FTIK USM — Login Page Stylesheet
   ============================================================ */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Login Shell — Split Layout
   ============================================================ */
.login-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
}

/* ============================================================
   Left Panel — Oranye
   ============================================================ */
.login-left {
    background: linear-gradient(145deg, #F05A1A 0%, #E04010 50%, #C83800 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 120px 44px 48px;
    color: white;
}

/* Decorative circles */
.login-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
}

.login-left::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.left-deco-ring {
    position: absolute;
    top: 30%;
    right: -40px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.12);
}

.left-deco-ring-2 {
    position: absolute;
    bottom: 20%;
    right: -20px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.10);
}

/* Diagonal lines deco */
.left-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.06;
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 20px,
        rgba(255,255,255,0.3) 20px,
        rgba(255,255,255,0.3) 21px
    );
    pointer-events: none;
}

.left-content {
    position: relative;
    z-index: 10;
}

.left-brand {
    margin-bottom: 48px;
    text-align: center;
}

.left-title {
    font-size: 38px;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.left-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    line-height: 1.4;
}

.left-illustration {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 78%;
    max-width: 400px;
    object-fit: contain;
    z-index: 5;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25));
}

.left-badge {
    position: absolute;
    right: 80px;
    bottom: 52%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    border: 2px solid rgba(255,255,255,0.3);
    z-index: 6;
    animation: float 3s ease-in-out infinite;
}

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

/* ============================================================
   Right Panel — White Form
   ============================================================ */
.login-right {
    background: white;
    display: flex;
    flex-direction: column;
    padding: 40px 52px;
    overflow-y: auto;
}

.right-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
    justify-content: center;
}

.right-logo img {
    height: 85px;
    width: auto;
    object-fit: contain;
}

.logo-divider {
    width: 1px;
    height: 48px;
    background: #E5E7EB;
}

.form-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

.form-greeting {
    margin-bottom: 36px;
}

.form-wave {
    font-size: 28px;
    margin-bottom: 8px;
}

.form-hello {
    font-size: 26px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 8px;
    line-height: 1.2;
}

.form-hello span {
    color: #F05A1A;
}

.form-desc {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

/* Form Fields */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #F05A1A;
    font-size: 16px;
    z-index: 1;
}

.login-form .form-control {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    color: #1F2937;
    background: #FAFAFA;
    transition: all 0.2s ease;
    font-family: inherit;
}

.login-form .form-control:focus {
    outline: none;
    border-color: #F05A1A;
    background: white;
    box-shadow: 0 0 0 3px rgba(240, 90, 26, 0.12);
}

.login-form .form-control::placeholder {
    color: #9CA3AF;
}

/* Submit Button */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #F05A1A, #E04010);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.3px;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(240, 90, 26, 0.35);
}

.btn-login:hover {
    background: linear-gradient(135deg, #E04010, #C83800);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 90, 26, 0.45);
}

.btn-login:active {
    transform: translateY(0);
}

/* Alert */
.login-alert {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FECACA;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   Responsive — Stack on Mobile
   ============================================================ */
@media (max-width: 768px) {
    body {
        overflow: auto;
    }

    .login-shell {
        grid-template-columns: 1fr;
        height: auto;
    }

    .login-left {
        min-height: 260px;
        padding: 36px 28px;
    }

    .left-title {
        font-size: 28px;
    }

    .left-illustration {
        display: none;
    }

    .login-right {
        padding: 32px 28px 40px;
    }

    .right-logo {
        margin-bottom: 32px;
    }

    .form-area {
        margin: 0;
        max-width: 100%;
    }
}

/* ============================================================
   Animations
   ============================================================ */

/* Keyframes */
@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translate(-50%, 30px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeSlideUpSimple {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes waveHand {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* Applying Animations */
.left-brand {
    animation: fadeSlideDown 0.8s ease-out forwards;
}

.left-illustration {
    opacity: 0; /* start hidden */
    animation: fadeSlideUp 0.8s ease-out 0.2s forwards;
}

.right-logo {
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.2s forwards;
}

.form-greeting {
    opacity: 0;
    animation: fadeSlideRight 0.8s ease-out 0.4s forwards;
}

.form-group:nth-of-type(1) {
    opacity: 0;
    animation: fadeSlideUpSimple 0.6s ease-out 0.5s forwards;
}

.form-group:nth-of-type(2) {
    opacity: 0;
    animation: fadeSlideUpSimple 0.6s ease-out 0.6s forwards;
}

.btn-login {
    opacity: 0;
    animation: fadeSlideUpSimple 0.6s ease-out 0.7s forwards;
}

.form-wave {
    display: inline-block;
    transform-origin: 70% 70%;
    animation: waveHand 2.5s infinite;
}
