/* Palet Warna Universitas Negeri Jakarta (UNJ)
   Hijau: #005c54 | Kuning: #fedd00 
*/

:root {
    --primary-green: #005c54;
    --accent-yellow: #fedd00;
    --light-yellow: #fff9d6;
    --white: #ffffff;
    --gray-bg: #f4f7f6;
    --text-dark: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--primary-green) 0%, #003d38 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-card {
    background: var(--white);
    width: 100%;
    max-width: 650px; /* Lebar optimal untuk pendaftaran */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-top: 8px solid var(--accent-yellow);
    text-align: center;
}

.header img {
    width: 85px;
    margin-bottom: 15px;
}

.header h2 {
    color: var(--primary-green);
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 5px;
}

.header p {
    color: #777;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Grouping Input */
.input-group {
    text-align: left;
    margin-bottom: 18px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 8px;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.input-group input:focus, 
.input-group select:focus {
    border-color: var(--primary-green);
    background-color: var(--light-yellow);
}

/* Fitur Capslock Otomatis untuk Asal Sekolah */
.capslock-input {
    text-transform: uppercase;
}

/* Styling Khusus Checkbox & Link */
.actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin: 10px 0 25px 0;
}

.forgot-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

/* Tombol Utama */
.login-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 92, 84, 0.3);
    margin-top: 10px;
}

.login-btn:hover {
    background-color: #00453f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 92, 84, 0.4);
}

.footer {
    margin-top: 25px;
    font-size: 13px;
    color: #666;
}

.footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 25px 0;
}


/* ///////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* Alert Container */
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* ///////////////////////////////////////////////////////////////////////////////////////////////////////// */
/* Alert Container */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Alert Box */
.alert {
    padding: 12px 20px;
    border-radius: 5px;
    color: white;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
    overflow: hidden;
}

/* Alert Types */
.alert-success {
    background-color: #28a745;
}

.alert-error {
    background-color: #dc3545;
}

.alert-warning {
    background-color: #ffc107;
    color: #333;
}

.alert-info {
    background-color: #17a2b8;
}

/* Progress Bar */
.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    width: 100%;
    transform: scaleX(1);
    transform-origin: left;
    animation: progressBar 5s linear forwards;
}

/* Animations */
@keyframes progressBar {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-10px); }
}
