@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);      
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.login-panel {
    background-color: #333333;
    padding: 60px 40px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    text-align: center;
    transition: transform 0.3s ease;
}

.login-panel:hover {
    transform: translateY(-5px);
}

.login-panel img {
    max-width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.login-panel h2 {
    color: #ffffff;
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.login-panel .subtitle {
    color: #aaaaaa;
    font-size: 0.9em;
    margin-bottom: 30px;
    display: block;
}

.alert-message {
    background-color: rgba(255, 82, 82, 0.1);
    color: #ff5252;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9em;
    margin-bottom: 20px;
    display: inline-block;
    width: 100%;
    border: 1px solid rgba(255, 82, 82, 0.2);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    color: #e0d0c0;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 8px;
    margin-left: 2px;
}

.input-field, 
.password-wrapper input {
    width: 100%;
    padding: 15px;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.password-wrapper input {
    padding-right: 45px; 
}

.input-field::placeholder,
.password-wrapper input::placeholder {
    color: #666;
}

.input-field:focus,
.password-wrapper input:focus {
    border-color: #e0d0c0;
    background-color: #383838;
    box-shadow: 0 0 8px rgba(224, 208, 192, 0.2);
}

.password-wrapper {
    position: relative; 
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%); 
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: #e0d0c0; 
}

.login-button {
    width: 100%;
    padding: 15px 0;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    background-color: #e0d0c0;
    color: #333333;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.login-button:hover {
    background-color: #fff;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(224, 208, 192, 0.3);
}

.register-text {
    margin-top: 25px;
    color: #aaaaaa;
    font-size: 0.9em;
}

.register-text a {
    color: #e0d0c0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.register-text a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.error-message {
    background-color: rgba(255, 82, 82, 0.15);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9em;
    border: 1px solid rgba(255, 82, 82, 0.3);
    animation: fadeIn 0.5s ease-in-out;
}

/* biar animasinya alus */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}