/*==================================================
RESET & GENERAL
==================================================*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #F7F6F2;
    color: #334155;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*==================================================
LAYOUT CONTAINER (Kotak Ramping & Compact)
==================================================*/
.register-page {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.register-card {
    background: #F7F6F2;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(29, 121, 1, 0.12);
    border: 1px solid #EAEAEA;
    width: 100%;
    max-width: 780px;            /* Ukuran kotak dipangkas dari 960px ke 780px */
    display: flex;
    overflow: hidden;
}

/*==================================================
SISI KIRI: ILUSTRASI GAMBAR
==================================================*/
.register-left {
    flex: 1;
    background: #F7F6F2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-right: 1px solid #eef3ee;
}

.register-left img {
    max-width: 100%;
    max-height: 280px;            /* Tinggi gambar diperkecil agar proporsional */
    object-fit: contain;
    mix-blend-mode: multiply;
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/*==================================================
SISI KANAN: FORM KONTEN
==================================================*/
.register-right {
    flex: 1.1;
    padding: 28px 30px;           /* Padding dalam diperkecil */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

/* LOGO AREA (Proporsional & Ditengah) */
.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 14px;
    text-align: center;
}

.logo-area i {
    font-size: 36px;
    color: #2E7D32;
    line-height: 1;
}

.logo-area h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1E5E20;
    margin: 0;
    line-height: 1.2;
}

.logo-area span {
    font-size: 12px;
    color: #666666;
    font-weight: 400;
    display: block;
}

/* HEADING */
.register-right h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1E5E20;
    margin-bottom: 4px;
}

.register-right p {
    font-size: 13px;
    color: #666666;
    margin-bottom: 18px;
}

/* FORM CONTROL & LABELS */
.register-right form {
    text-align: left;
}

.form-group {
    margin-bottom: 10px;          /* Jarak antar field dibuat rapat */
}

label {
    font-size: 12px;
    font-weight: 600;
    color: #1E5E20;
    margin-bottom: 4px;
    display: block;
}

.form-control {
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    padding: 8px 12px;            /* Tinggi input dilapangkan tapi rapat */
    font-size: 13px;
    color: #334155;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #2E7D32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
    outline: none;
}

/* INPUT GROUP (TOGGLE PASSWORD) */
.input-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-text {
    background-color: #FFFFFF;
    border: 1.5px solid #D1D5DB;
    border-left: none;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    color: #666666;
    cursor: pointer;
    padding: 8px 12px;
    transition: color 0.2s;
}

.input-group-text:hover {
    color: #2E7D32;
}

.input-group:focus-within .input-group-text {
    border-color: #2E7D32;
}

/* LINK LOGIN */
.login-link {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #666666;
}

.login-link a {
    color: #2E7D32;
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    color: #1E5E20;
    text-decoration: underline;
}

/* BUTTON REGISTER */
.btn-register {
    width: 100%;
    padding: 10px;
    background-color: #2E7D32;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-register:hover {
    background-color: #236628;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

/* ALERT ERROR CUSTOM */
.alert-danger {
    background-color: #FFEBEE;
    border-color: #FFCDD2;
    color: #C62828;
    border-radius: 8px;
    font-size: 12px;
    padding: 8px 12px;
}

/*==================================================
RESPONSIVE DESIGN
==================================================*/
@media (max-width: 768px) {
    .register-card {
        flex-direction: column;
        max-width: 420px;
    }

    .register-left {
        display: none;
    }

    .register-right {
        padding: 24px 20px;
    }
}