/* ================================
   LOGIN / REGISTER LAYOUT FIX
================================ */

.login-container,
.register-container{

    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px); /* Kurangi tinggi navbar dan footer */
    padding: 140px 20px 60px;
    box-sizing: border-box;
    background:#0d0d0d;

}

/* wrapper tengah konten */
.login-main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    
    flex-grow: 1;
    padding-bottom: 60px;
}

/* ================================
   FORM CARD
================================ */

.login-form-card,
.register-form-card{

    background-color: #2a2a2a;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 450px; /* Sedikit lebih lebar dari login jika perlu */
    width: 100%;
}

/* TITLE */
.login-form-card h2,
.register-form-card h2{

    color: #FFA500;
    margin-bottom: 30px;
    font-size: 2em;
}

/* ================================
   INPUT FORM
================================ */

.form-group {
    margin-bottom: 20px;
    text-align: center;
}

.form-group label {
   display: block;
   margin-bottom: 8px;
   color: #e0e0e0;
   font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    
    width: calc(100% - 20px); /* Kurangi padding */
    padding: 10px;
    border: 1px solid #555555;
    border-radius: 5px;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 1em;
}

.form-group input:focus {
    outline: none;
    border-color: #FFA500;
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.3);
}

/* ================================
   BUTTON
================================ */

.login-form-card .btn-primary,
.register-form-card .btn-primary {
    width: 100%;
    margin-top: 20px;
}

/* ================================
   TEXT LINK
================================ */

.login-form-card p,
.register-form-card p {
    color: #e0e0e0;
    margin-top: 25px;
    font-size: 14px;
}

.login-form-card p a,
.register-form-card p a {
    color: #FFA500;
    font-weight: bold;
    text-decoration: none;
}

.login-form-card p a:hover {
    text-decoration: underline;
}

/* ================================
   MESSAGE
================================ */

.message-container {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.error-message {
    color: #ff4d4d; /* Merah */
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 10px;
    text-align: left;
    list-style-type: none; /* Hilangkan bullet point */
    padding-left: 0;
}

.success-message {
    background-color: #1f3a24;
    color: #7CFF8A;
}

.error-message ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-message li {
    text-align: left;
}

/* ==========================
   MOBILE
========================== */

@media(max-width:768px){

.login-container,
.register-container{

    padding:120px 16px 30px;
    
    align-items:flex-start;

}

.login-form-card,
.register-form-card{

    max-width:185px;

    padding:16px 10px;

    border-radius:10px;

}

.login-form-card h2{

    font-size:15px;

    margin-bottom:20px;

    line-height:1.2;

}

.form-group{

    margin-bottom:8px;

}

.form-group label{

    font-size:8px;

}

.form-group input{

    max-width:150px;
    height:12px;
    font-size:8px;
    justify-content: center;
    align-items: center;

}

.btn-primary{

    height:25px;
    max-width:150px;
    font-size:16px;

}

.login-form-card p{

    font-size:14px;

    margin-top:8px;

}

}