/* --- style/index.css --- */

/* --- Import Fonts (Assuming fonts.css is loaded correctly in HTML) --- */
body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); /* Dark blue gradient */
    color: #ecf0f1; /* Light text */
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center; /* Center the login container horizontally */
    align-items: center; /* Center the login container vertically */
    box-sizing: border-box;
}

/* --- Login Container --- */
.login-container {
    background-color: #2c3e50; /* Dark slate blue */
    padding: 40px 50px; /* Generous padding */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 450px; /* Suitable width for a login form */
    margin: 20px; /* Ensure some margin */
    box-sizing: border-box;
    text-align: center; /* Center logo and headings */
}

/* --- Logo --- */
.logo-container {
    margin-bottom: 20px;
}

.logo-container img {
    max-width: 120px; /* Adjust size as needed */
    height: auto;
    border-radius: 50%; /* Circular logo */
    border: 3px solid #4e6680; /* Optional border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* --- Headings --- */
.login-container h2 {
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 600;
}
.login-container h2:first-of-type { /* App name */
    font-size: 1.4em;
    color: #bdc3c7; /* Slightly dimmer */
    margin-bottom: 5px;
}
.login-container h2:last-of-type { /* "Giriş" */
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 30px; /* More space before form */
}

/* --- Error/Info Messages --- */
.message {
    padding: 12px 18px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 0.95em;
    font-weight: 500;
    border: 1px solid transparent;
    text-align: center;
}
/* Use established colors */
.message.success { /* Add success if needed later */
    background-color: #2ecc71; color: #ffffff; border-color: #27ae60;
}
.message.error {
    background-color: #e74c3c; color: #ffffff; border-color: #c0392b;
}
.message.warning { /* Add warning if needed later */
    background-color: #f39c12; color: #1f2d38; border-color: #d35400;
}
.message.info {
    background-color: #3498db; color: #ffffff; border-color: #2980b9;
}


/* --- Form Styling --- */
form {
    text-align: left; /* Align form elements left */
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block; /* Label on its own line */
    margin-bottom: 8px;
    color: #bdc3c7; /* Silver */
    font-size: 0.95em;
    font-weight: 500;
}

input[type="email"],
input[type="password"] {
    width: 100%; /* Full width */
    padding: 12px 15px;
    border: 1px solid #4e6680; /* Slightly lighter border */
    background-color: #1f2d38; /* Darker input background */
    color: #ecf0f1; /* Light text */
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: #1abc9c; /* Teal focus border */
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.2); /* Subtle glow */
}

/* --- Button Group --- */
.button-group {
    margin-top: 30px; /* Space above buttons */
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px; /* Space between buttons */
}

/* General Button Styles (Shared) */
button[type="submit"] {
    display: inline-flex; /* Align icon and text */
    align-items: center;
    justify-content: center;
    padding: 12px 20px; /* Slightly larger padding for login buttons */
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.05em; /* Slightly larger font */
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    width: 100%; /* Make buttons full width */
    box-sizing: border-box;
}

button[type="submit"]:hover,
button[type="submit"]:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    outline: none;
}

/* Primary Button (Employee Login) */
button[name="login_employee"] {
    background-color: #1abc9c; /* Teal */
    color: #ffffff;
}
button[name="login_employee"]:hover,
button[name="login_employee"]:focus {
    background-color: #16a085; /* Darker teal */
}

/* Secondary Button (Client Login) */
button.login_client {
    background-color: transparent;
    color: #3498db; /* Blue text */
    border: 2px solid #3498db; /* Blue border */
}
button.login_client:hover,
button.login_client:focus {
    background-color: rgba(52, 152, 219, 0.1); /* Light blue background */
    color: #5dade2; /* Lighter blue text */
    border-color: #5dade2; /* Lighter blue border */
}

/* Optional: Install Button Styling (if uncommented) */
/*
.installAppDiv {
     margin-bottom: 20px;
}
#installApp {
    background-color: #9b59b6; // Purple example
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}
#installApp:hover {
    background-color: #8e44ad;
}
*/


/* --- Responsive Design --- */

@media (max-width: 500px) {
    body {
        /* Allow vertical scrolling if needed, center horizontally */
        align-items: flex-start; /* Align container top */
        padding-top: 5vh;
        padding-bottom: 5vh;
    }
    .login-container {
        padding: 30px 25px; /* Reduce padding */
        max-width: 90%; /* Allow slightly wider on small screens */
        margin-top: 0;
    }
    .logo-container img {
        max-width: 100px; /* Smaller logo */
    }
    .login-container h2:first-of-type {
        font-size: 1.2em;
    }
    .login-container h2:last-of-type {
        font-size: 1.6em;
        margin-bottom: 25px;
    }
    input[type="email"],
    input[type="password"] {
        padding: 10px 12px;
        font-size: 1em;
    }
     .button-group {
        margin-top: 25px;
        gap: 12px;
    }
    button[type="submit"] {
        padding: 11px 18px;
        font-size: 1em;
    }
}