/* login.css - complete file */

/* Reset / body */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    font-size: 20px;
    background-color: #f0f0f0; /* Light background color */
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-image: url('/domestic_voicelogging/static/images/Login.png');
    background-size: cover; /* Ensure the image covers the entire background */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent tiling */
}

/* Container */
.login-container {
    background-color: #f8f9fa; /* Lighter background color */
    padding: 70px;             /* reduced from 80px (less vertical empty space) */
    border-radius: 100px;
    border: 4px solid #6FB8e5;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px; /* Limit width to avoid stretching on larger screens */
    width: 100%;
    margin: 0 auto;
    position: relative; /* Allows the use of top and left for positioning */
    top: -30px; /* fine-tune position (kept as your original) */
    left: -310px; /* kept as your original positioning hack */
}

/* Logo styling */
.logo {
    width: 350px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
}

/* Header styling */
header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Add margin to separate header from form */
}

h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 28px; /* Larger font size for headings */
}

/* Form layout */
form {
    display: flex;
    flex-direction: column;
}

/* Labels */
label {
    font-size: 18px; /* Adjust label font size */
    margin-bottom: 8px;
    color: #666;
}

/* Inputs */
input[type="text"],
input[type="password"] {
    padding: 12px;
    margin-bottom: 12px; /* tightened from 20px to compact spacing */
    border: 1px solid #ccc;
    border-radius: 20px; /* combined two radius declarations */
    font-size: 18px; /* Adjust input font size */
    width: 100%;
    box-sizing: border-box; /* Ensure padding does not affect width */
    text-align: center;
}

/* Login and Back buttons (unified styling) */
button[type="submit"],
.back-button {
    display: block;             /* fill available width */
    width: 100%;                /* same width as input fields */
    box-sizing: border-box;
    padding: 12px 24px;
    border-radius: 20px;
    border: 3px solid #0117b8;
    background-color: #0117b8;
    color: #f8f9fa;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
    text-align: center;
    margin: 12px 0 12px 0;         /* small gap after each button */
}

/* Submit hover */
button[type="submit"]:hover,
button[type="submit"]:focus,
.back-button:hover,
.back-button:focus {
    background-color: #f8f9fa;
    color: #0117b8;
    outline: none;
    text-decoration: none;
}

/* Back button specifics (anchor styled as button) */
.back-button {
    /* anchor-specific reset (if applied elsewhere) */
    display: block;
    line-height: 1;
}

/* Error message */
.error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
}

/* Standard links */
a {
    color: #007bff;
    text-decoration: none;
    font-size: 16px; /* Adjust link font size */
}

a:hover {
    text-decoration: underline;
}