/* ===== AUTH STYLES (LOGIN & REGISTER) ===== */

/* Reset untuk halaman auth */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
}

/* ===== CONTAINER STYLES ===== */
.login-container,
.register-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.register-container {
    max-width: 500px;
}

/* ===== LOGO SECTION ===== */
.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo h1 {
    color: #2e7d32;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.logo p {
    color: #666;
    font-size: 0.9rem;
}

/* ===== FORM STYLES ===== */
.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2e7d32;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select,
.form-group textarea:focus {
    outline: none;
    border-color: #4caf50;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===== BUTTON STYLES ===== */
.btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
}

/* ===== ALERT STYLES ===== */
.error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid #c62828;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 1rem;
    border-left: 4px solid #4caf50;
}

/* ===== LINK STYLES ===== */
.links {
    text-align: center;
    margin-top: 2rem;
}

.links a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: bold;
}

.links a:hover {
    text-decoration: underline;
}

.divider {
    margin: 1rem 0;
    color: #999;
}

/* ===== DEMO ACCOUNTS ===== */
.demo-accounts {
    background: #f1f8e9;
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    border-left: 4px solid #4caf50;
}

.demo-accounts h4 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.demo-accounts p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

/* ===== REQUIRED FIELD ===== */
.required {
    color: #c62828;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 600px) {
    .register-container,
    .login-container {
        margin: 10px;
        padding: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .logo h1 {
        font-size: 1.8rem;
    }
}