/* style.css */


html, body {
    margin: 0;
    padding: 100;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5; 
    color: #333;
    line-height: 1.6;
    box-sizing: border-box;
    
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Ini adalah CLASS KHUSUS untuk BODY HALAMAN LOGIN --- */

body.login-page-body {
    padding-top: 0; 
    justify-content: center; 
    align-items: center; 
}


/* --- HEADER (Navbar atas tidak sticky, untuk halaman utama) --- */
header {
    background-color: #007bff;
    color: white;
    padding: 50px 10px;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

header h1 {
    margin: 0;
    font-size: 2.8em;
    letter-spacing: 1px;
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

/* --- NAV (Sticky Navbar) --- */
nav {
    background-color: #0056b3;
    padding: 12px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 18px;
}

nav ul li a {
    display: block;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

nav ul li a:hover {
    background-color: #004085;
    transform: translateY(-2px);
}

/* --- CONTAINER UMUM UNTUK KONTEN (selain login) --- */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 30px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    flex-grow: 1; 
}

/* --- JUDUL BAGIAN (untuk halaman selain login) --- */
h2 {
    color: #007bff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #28a745;
    border-radius: 2px;
}

/* --- FORM GROUP UMUM (Digunakan di login, register, booking, dll.) --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="password"], 
.form-group textarea,
.form-group select {
    width: calc(100% - 22px);
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group input[type="time"]:focus,
.form-group input[type="password"]:focus, /* Penting: tambahkan ini */
.form-group textarea:focus,
.form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* --- BUTTON UMUM (Digunakan di login, register, booking, dll.) --- */
button[type="submit"], .btn-primary {
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

button[type="submit"]:hover, .btn-primary:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

/* --- MESSAGE BOX UMUM (untuk sukses/error) --- */
.message-box {
    padding: 15px;
    border-radius: 8px;
    margin-top: 25px;
    font-size: 1.1em;
    text-align: center;
    border: 1px solid transparent;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}


/* --- SERVICE GRID (jika ada di index.php atau services.php) --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.service-card {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.service-card i {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 15px;
}

.service-card h3 {
    color: #007bff;
    margin-top: 0;
    font-size: 1.6em;
}

.service-card p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
}

.service-card .price {
    font-weight: bold;
    color: #28a745;
    font-size: 1.4em;
    margin-top: 15px;
    display: block;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    background-color: #343a40;
    color: white;
    font-size: 0.9em;
    box-shadow: 0 -3px 6px rgba(0,0,0,0.1);
    margin-top: auto; /* Untuk sticky footer */
}

/* --- LOGIN CONTAINER STYLES (PENAMBAHAN UTAMA UNTUK FORM LOGIN) --- */
.login-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
    margin: auto; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-container h2 {
    color: #007bff;
    margin-bottom: 30px;
    font-size: 2em;
    font-weight: 600;
    position: relative;
    padding-bottom: 0;
}


.login-container h2::after {
    content: none;
}


.login-container p {
    margin-top: 25px;
    font-size: 0.95em;
    color: #666;
}

.login-container p a { 
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.login-container p a:hover {
    color: #0056b3;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 20px;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    nav ul li {
        margin: 5px 0;
    }
    header h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
    }
  
    .login-container {
        padding: 30px 20px;
        margin: 20px; 
    }
}
