/* 1. ROOT BACKGROUND (The Fix) */
/* Applying background to HTML ensures it is always full screen and behind everything */
html {
    height: 100%;
    margin: 0;
    padding: 0;
    
    /* BACKGROUND CONFIGURATION */
    /* Ensure this filename matches EXACTLY (Case Sensitive) */
    background: url('dtbcom_homepage-1920x1080.jpeg') no-repeat center center fixed;
    background-color: #1a4b8f; /* Safety Blue fallback */
    background-size: cover;
}

/* 2. BODY LAYOUT (The Content Container) */
body {
    height: 100%; /* Fill the HTML tag */
    min-height: 100vh;
    margin: 0;
    padding: 0;
    
    /* Flexbox for Centering */
    display: flex;
    justify-content: center;
    align-items: center; /* Vertical Center (Default for Desktop) */
    
    /* CRITICAL: Transparent body so the HTML background shows through */
    background-color: transparent; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 3. LOGIN CARD STYLING */
.login-card {
    background-color: rgba(255, 255, 255, 0.80); /* 90% White */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 90%; 
    max-width: 400px;
    box-sizing: border-box;
    text-align: center;
}

/* Typography & Inputs */
h1 {
    color: #000;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
}

p {
    color: #000;
    font-weight: 600;
    font-size: 1.05em;
    margin-bottom: 25px;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}

button.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
}

button.submit-btn:hover {
    background-color: #0056b3;
}

/* 4. MOBILE / CNA SAFETY OVERRIDE */
/* If the screen is short (like a phone keyboard is up or CNA window), move box to top */
@media screen and (max-height: 700px) {
    body {
        align-items: flex-start; /* Align to Top */
        padding-top: 40px;       /* Push down slightly */
    }
    
    .login-card {
        padding: 25px;
    }
}
