:root {
    --primary: #4e73df;
    --text-dark: #2c3e50;
    --text-soft: #6c757d;
    --radius: 26px;
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(-45deg, #ffffff, #eef4ff, #f8fbff, #ffffff);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    overflow-x: hidden;
}

/* Animated Background */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating blur shapes */
body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
}

body::before {
    width: 400px;
    height: 400px;
    background: rgba(78,115,223,0.15);
    top: -120px;
    left: -120px;
}

body::after {
    width: 500px;
    height: 500px;
    background: rgba(78,115,223,0.08);
    bottom: -150px;
    right: -150px;
}

/* SECTION */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 5%;
}

.container {
    width: 100%;
    max-width: 1200px;
}

/* CARD */
.card {
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 70px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
    transition: 0.4s ease;
}

.card:hover {
    transform: translateY(-6px);
}

/* HERO */
.hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

.hero-left h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-left p {
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 35px;
}

/* BUTTON */
.btn-primary {
    padding: 14px 35px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #4e73df, #6f8cff);
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(78,115,223,0.3);
}

.btn-primary.full {
    width: 100%;
}

/* HERO IMAGE */
.hero-right {
    display: flex;
    justify-content: center;
}

.blob {
    width: 400px;
    height: 400px;
    border-radius: 50% 45% 55% 45% / 55% 50% 50% 45%;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.blob img {
    width: 120%;
    height: 120%;
    object-fit: cover;
}

/* LOGIN */
.login {
    min-height: 105vh;
}

.login-wrapper {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

/* Header */
.login-header {
    margin-bottom: 50px;
    position: relative;
}

.login-header h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    z-index: 2;
}

.login-header::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(78,115,223,0.15);
    border-radius: 50%;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(60px);
    z-index: 1;
}

.subtitle {
    margin-top: 15px;
    color: var(--text-soft);
}

.divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #4e73df, #6f8cff);
    margin: 18px auto;
    border-radius: 5px;
}

/* LOGIN CARD */
.login-card {
    display: flex;
    justify-content: center;
}

.login-inner {
    width: 100%;
    max-width: 450px;
}

.logo img {
    width: 70px;
    margin-bottom: 25px;
}

/* MESSAGE */
/* .auth-message {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.auth-error {
    background: #ffecec;
    color: #d63031;
    border: 1px solid #ffbaba;
} */

/* INPUT */
.input-group {
    position: relative;
    margin-bottom: 22px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(78,115,223,0.1);
    outline: none;
}

.password-group {
    position: relative;
}

.password-group input {
    width: 100%;
    padding-left: 35px;   /* ruang untuk icon lock */
    padding-right: 40px;  /* ruang untuk icon mata */
}

.password-group .toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;   /* area klik icon mata */
    height: 24px;
    margin-right: 10px;
}

.password-group .toggle-password:hover i {
    color: #0d6efd;
}

/* FOOTER */
.footer {
    margin-top: 40px;
    font-size: 13px;
    color: var(--text-soft);
}

/* Fade */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media(max-width: 992px) {
    .hero-card {
        flex-direction: column-reverse;
        text-align: center;
    }

    .blob {
        width: 250px;
        height: 250px;
    }

    .card {
        padding: 40px 25px;
    }
}

@media(max-width: 576px) {
    .hero-left h1 {
        font-size: 26px;
    }

    .login-header h2 {
        font-size: 22px;
    }
}