/* light-main.css - Versi compact & rapi */

/* Import font Blinker */
@import url('https://fonts.googleapis.com/css2?family=Blinker:wght@400;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Blinker', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(135deg, #2196f3 0%, #e3f2fd 100%);
    padding: 2rem 1rem;
    color: #212121;
}

/* Card container */
.container {
    background-color: #ffffffcc;
    border-radius: 16px;
    padding: 2rem;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Judul */
.container h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0d47a1;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Baris input label + input sejajar */
.form-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

/* Label */
label {
    width: 45%; /* Lebar label */
    font-weight: 600;
    font-size: 1rem;
    color: #1976d2;
    text-align: right;
}

/* Input */
input {
    width: 65%; /* Lebar input */
    padding: 0.55rem 0.95rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1.5px solid #90caf9;
    background-color: #e3f2fd;
    color: #0d47a1;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    border-color: #0d47a1;
    box-shadow: 0 0 6px rgba(25,118,210,0.5);
}

/* Tombol submit */
button {
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    background-color: #1976d2;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover,
button:focus {
    background-color: #0d47a1;
    outline: none;
}

/* Pesan error & sukses */
.error-msg, .success-msg {
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

.error-msg {
    background-color: #ffebee;
    color: #c62828;
}

.success-msg {
    background-color: #e8f5e9;
    color: #2e7d32;
}

/* Footer teks */
.footer-text {
    font-size: 0.95rem;
    color: #0d47a1;
    margin-top: 1rem;
    text-align: center;
}

/* Responsive mobile */
@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    label, input {
        width: 100%;
        text-align: left;
    }
}
