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

/* Container utama */
.login-container {
    display: flex;
    min-height: 100vh;
}

/* Bagian kiri - Form */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #ffffff;
}

.login-content {
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.login-logo {
    width: 360px;
    margin-bottom: 1.5rem;
}

.login-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.login-description {
    color: #718096;
    margin-bottom: 2rem;
}

/* Form styling tetap sama seperti sebelumnya */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.sign-in-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #4299e1;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sign-in-button:hover {
    background-color: #3182ce;
}

/* Bagian Kanan - Image */
.login-image-section {
    flex: 1;
    background-color: #FDB813;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    overflow: hidden;
}

.illustration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.illustration-box {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #4b5563;
    font-size: 0.875rem;
}

.forgot-password {
    color: #22c55e;
    font-size: 0.875rem;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.illustration-section {
    width: 50%;
    background-color: #FDB813; /* Warna kuning */
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration-content {
    width: 100%;
    max-width: 600px;
}

.illustration-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.illustration-box {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.illustration-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Warna box */
.green { background-color: #4ADE80; }
.orange { background-color: #FB923C; }
.pink { background-color: #EC4899; }
.blue { background-color: #60A5FA; }

.title-section {
    text-align: center;
    margin: 2rem 0;
}

.title-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: #000;
}

.institution-info {
    text-align: center;
    margin-top: 2rem;
}

.institution-info p {
    font-weight: 600;
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

/* Tambahkan styling untuk logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo-itenas {
    width: 360px;
    height: auto;
    margin-bottom: 1rem;
}

/* Update styling untuk title dan subtitle */
.login-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1a365d;
    margin-bottom: 0.25rem;
}

.login-subtitle {
    font-size: 1.2rem;
    color: #3b82f6;
    margin-bottom: 0.25rem;
}

.login-description {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.background-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Atur transparansi gambar */
}

.institution-info {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #000;
    padding: 2rem;
    margin-top: auto; /* Posisikan di bagian bawah */
}

.institution-info p:first-child {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.institution-info p:last-child {
    font-size: 1.5rem;
    font-weight: bold;
}

.login-container {
    display: flex;
    min-height: 100vh;
}

/* Bagian kiri - Form */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: #ffffff;
}

.login-content {
    width: 100%;
    max-width: 360px;
    text-align: center;
}

/* Logo styling */
.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.logo-itenas {
    width: 100px;
    height: auto;
}

/* Text styling */
.login-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 0.25rem;
    text-align: center;
}

.login-subtitle {
    font-size: 1rem;
    color: #FDB813;
    margin-bottom: 0.25rem;
    text-align: center;
}

.login-description {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Form input styling */
.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    background-color: #f8fafc;
    text-align: left;
    padding-left: 1rem;
}

/* Button styling */
.sign-in-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #FDB813;
    color: black;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sign-in-button:hover {
    background-color: #FF8C00;
}

/* Bagian kanan */
.login-image-section {
    flex: 1;
    background-color: #FDB813;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.institution-info {
    text-align: center;
    margin-top: auto;
    color: #000;
}

.institution-info p:first-child {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.institution-info p:last-child {
    font-size: 1.25rem;
    font-weight: 600;
}

/* Hapus background image yang tidak digunakan */
.background-image {
    display: none;
}

/* Media Query untuk Mobile */
@media screen and (max-width: 768px) { /* 768px adalah breakpoint umum untuk tablet/mobile */
    .login-image-section {
        display: none; /* Hide bagian kanan */
    }

    .login-form-section {
        flex: 1;
        padding: 1rem; /* Kurangi padding di mobile */
    }

    .login-content {
        max-width: 100%; /* Gunakan full width di mobile */
        padding: 0 1rem; /* Tambah padding kiri-kanan */
    }

    .logo-itenas {
        width: 80px; /* Logo lebih kecil di mobile */
    }

    .login-title {
        font-size: 1.2rem; /* Font lebih kecil di mobile */
    }

    .login-subtitle {
        font-size: 0.9rem;
    }

    .login-description {
        font-size: 0.8rem;
    }

    .form-input {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .sign-in-button {
        padding: 0.6rem;
    }
}

/* Untuk device yang sangat kecil */
@media screen and (max-width: 375px) {
    .login-content {
        padding: 0 0.5rem;
    }

    .logo-itenas {
        width: 60px;
    }
}

/* Styling untuk container ilustrasi */
.illustration-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.illustration-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    position: absolute;
    top: 0;
    left: 0;
}

/* Pastikan institution-info tetap di atas ilustrasi */
.institution-info {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: auto;
    color: #000;
}

.institution-info p:first-child {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.institution-info p:last-child {
    font-size: 1.25rem;
    font-weight: 600;
}
