@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@300&family=Poppins:wght@300&display=swap");

:root {
    --background: #1a1a2e;
    --color: #ffffff; /* teks putih */
    --primary-color: #0f3460;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: var(--background);
    color: #ffffff; /* override jadi putih */
    letter-spacing: 1px;
    transition: background 0.2s ease;
}

a {
    text-decoration: none;
    color: #ffffff; /* teks link juga putih */
}

h1 {
    font-size: 2.5rem;
    color: #ffffff; /* judul juga putih */
}

/* Placeholder putih untuk semua browser */
.login-container form input::placeholder {
    color: #ffffff;
    background-color: #9191911f;
    opacity: 1;
}

.login-container form input::-webkit-input-placeholder {
    color: #ffffff;
}

.login-container form input:-ms-input-placeholder {
    color: #ffffff;
}

.login-container form input::-ms-input-placeholder {
    color: #ffffff;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 24px 8px;
}

.login-container {
    position: relative;
    width: 28rem;
    max-width: 100%;
}

.form-container {
    border: 1px solid hsla(0, 0%, 65%, 0.158);
    box-shadow: 0 0 36px 1px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background-color: #4caf50; /* warna hijau */
    z-index: 99;
    padding: 2rem;
    color: #ffffff; /* teks tetap putih */
    position: relative; /* tambahkan ini */
}

.login-container form input {
    display: block;
    padding: 14.5px;
    width: 100%;
    margin: 2rem 0;
    color: #000000; /* teks input hitam */
    outline: none;
    background-color: #ffffff; /* latar belakang putih */
    border: 1px solid #ccc; /* border abu muda supaya kelihatan */
    border-radius: 5px;
    font-weight: 500;
    letter-spacing: 0.8px;
    font-size: 15px;
}

.login-container form input::placeholder {
    color: rgba(0, 0, 0, 0.5); /* placeholder hitam transparan */
}

.login-container form input:focus {
    box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.2);
    animation: wobble 0.3s ease-in;
    color: #000000; /* teks saat focus tetap hitam */
}

.login-container form button {
    background-color: var(--primary-color);
    color: #ffffff; /* teks tombol putih */
    display: block;
    padding: 13px;
    border-radius: 5px;
    outline: none;
    font-size: 18px;
    letter-spacing: 1.5px;
    font-weight: bold;
    width: 100%;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: all 0.1s ease-in-out;
    border: none;
}

.login-container form button:hover {
    box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.15);
    transform: scale(1.02);
}

.circle {
    width: 8rem;
    height: 8rem;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
}

.illustration {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 250px;
    opacity: 1; /* atau 0.3 agar lebih transparan */
    z-index: 0; /* pastikan di bawah teks */
    pointer-events: none;
}

/* Logo TK dengan background putih bulat */
.logo-bg {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem auto;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.08);
}

.logo-mitra {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: none;
    background: transparent;
}

.circle-one {
    top: 0;
    left: 0;
    z-index: -1;
    transform: translate(-45%, -45%);
}

.circle-two {
    bottom: 0;
    right: 0;
    z-index: -1;
    transform: translate(45%, 45%);
}

.register-forget {
    margin: 1rem 0;
    display: flex;
    justify-content: space-between;
}

.opacity {
    opacity: 100;
}

.theme-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding: 1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 36px 1px rgba(0, 0, 0, 0.1);
}

.theme-btn {
    cursor: pointer;
    transition: all 0.3s ease-in;
    margin: 0 5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.theme-btn:hover {
    width: 40px !important;
}

.container.two-column {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    padding: 2rem;
}

.welcome-section {
    max-width: 450px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    min-height: 420px;
}

.welcome-section h1 {
    font-size: 2.1rem;
    color: #222;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.welcome-section p {
    font-size: 1.05rem;
    color: #444;
    margin-top: 0;
    line-height: 1.4;
}

.subtext {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.form-container {
    position: relative; /* tambahkan ini */
    z-index: 1;
}

/* Hapus ilustrasi anak perempuan */
.peek-illustration {
    display: none !important;
}

/* Container untuk teks sambutan */
.welcome-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@media (max-width: 900px) {
    .container.two-column {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }
    .welcome-section {
        text-align: center;
        align-items: center;
    }
    .peek-illustration {
        display: none; /* sembunyikan di mobile untuk menghindari overlap */
    }
    .welcome-section h1 {
        font-size: 1.8rem;
        margin-top: 0;
    }
    .welcome-section p {
        font-size: 0.95rem;
    }
    .form-container {
        padding: 1.2rem;
    }
    .login-container {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 8px 2px;
    }
    .login-container {
        width: 100%;
        min-width: 0;
    }
    .form-container {
        padding: 0.7rem;
    }
    .welcome-section h1 {
        font-size: 1.3rem;
    }
    .welcome-section p {
        font-size: 1rem;
    }
    .logo-mitra {
        width: 60px;
        height: 60px;
    }
    .illustration {
        width: 120px;
        top: 0;
        right: 0;
    }
}

@keyframes wobble {
    0% {
        transform: scale(1.025);
    }
    25% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.025);
    }
    100% {
        transform: scale(1);
    }
}
