/* ===== IMPORT FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@200;300;400;600&display=swap');

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

/* ===== BACKGROUND ===== */
body {
    font-family: 'Inter', sans-serif;
    background-image: url('/static/images/sawit1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #fff;
}

/* ===== WELCOME TEXT (lebih smooth & premium) ===== */

.welcome-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 200;
    color: #53e0c8;
    opacity: 0;
    transform: translateY(14px);
    animation: textReveal 1.2s ease forwards;
    position: relative;
}

/* Underline neon lembut */
.welcome-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #53e0c8, #8df5dc);
    border-radius: 4px;
    animation: underlineGrow 0.9s ease forwards 0.9s;
}

.welcome-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    font-weight: 300;
    color: #b4fff3;
    opacity: 0;
    transform: translateY(16px);
    animation: textReveal 1.2s ease forwards 0.2s;
}

/* Glow lembut */
.welcome-subtitle::after {
    content: "";
    position: absolute;
    inset: 0;
    filter: blur(20px);
    background: #38d6b7;
    opacity: 0.12;
}

.welcome-desc {
    font-size: 1.1rem;
    max-width: 420px;
    color: rgba(255,255,255,0.82);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(18px);
    animation: textReveal 1.2s ease forwards 0.35s;
}


@keyframes textReveal {
    0% { opacity: 0; transform: translateY(18px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes underlineGrow {
    from { width: 0%; opacity: 0; }
    to { width: 100%; opacity: 1; }
}


/* ===== WRAPPER ===== */

.login-layout {
    width: 100%;
    display: flex;
    align-items: right;
    justify-content: right;

    /* Tinggi cukup ambil dari body */
    min-height: 100vh;
}

.login-container {
    margin: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== GLASS CARD (lebih soft & mewah) ===== */

.login-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 2rem 2.2rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
    animation: fadeInUp 0.8s ease-out;
}

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


/* ===== LOGO ===== */

.logo-section .logo {
    width: 85px;
    height: 85px;
    margin: 0 auto 1rem;
    margin-bottom: 40px;
    border-radius: 14px;
    object-fit: contain;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    animation: logoGlow 1.6s ease-in-out infinite alternate;
    display: block;
}

@keyframes logoGlow {
    0% { box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
    100% { box-shadow: 0 4px 22px rgba(83, 224, 200, 0.45); }
}


/* ===== TITLE ===== */

.app-title {
    font-size: 1.55rem;
    font-weight: 500;
    margin-bottom: 50px;   
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    animation: textFadeIn 0.9s ease forwards 0.3s;
}

.app-subtitle {
    font-size: 1.1rem;
    color: #53e0c8;
    opacity: 0;
    animation: textFadeIn 0.9s ease forwards 0.45s;
}

@keyframes textFadeIn {
    to { opacity: 1; }
}


/* ===== INPUT ===== */

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #e6fff8;
    margin-bottom: 1.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: 0.25s ease;
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.55);
}

.form-group input:focus {
    border-color: #53e0c8;
    box-shadow: 0 0 0 3px rgba(83,224,200,0.25);
    outline: none;
}


/* ===== BUTTON (lebih modern) ===== */

.login-btn {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, #189f8a, #1ac19a);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    transition: 0.25s ease;
    margin-bottom: 70px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #16b19a, #20dcb6);
}

.login-btn:active {
    background: #118f7c;
}


/* ===== FOOTER ===== */

.login-footer p {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 10px;
}


/* ===== MOBILE ===== */

@media (max-width: 480px) {
    .login-card {
        padding: 1.6rem 1.4rem;
    }

    .welcome-title {
        font-size: 2.4rem;
    }
}
