@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

body {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f7f7f7;
    font-family: 'Inter', sans-serif;
}

/* The Main Card - Tightened Up */
.main {
    width: 300px; /* Narrower width */
    padding: 25px; /* Reduced internal padding */
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-top: 4px solid #41A4ED;
    text-align: center;
}

/* Logo Class - Proportional & Centered */
.tw {
    display: block;      /* Makes the image a block element */
    margin-left: auto;   /* Works with margin-right to center */
    margin-right: auto; 
    margin-top: 5px;     /* Minimal space at the very top */
    margin-bottom: 12px; /* Space between logo and text */
    width: 100px;         /* Uses actual image width */
    height: 75px;        /* Uses actual image height */
    max-width: 100%;     /* Prevents overflow if the file is very wide */
}

/* Welcome Text */
.welcome {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px 0; /* Tightened margins */
}

/* Form Container - Less Gap */
.box-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Reduced gap between inputs */
}

/* Unified Input & Button Styling */
input[type='text'], 
input[type='password'],
input[name='submit'] {
    width: 100%;
    height: 40px; /* Slightly shorter height */
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
}

input[type='text'], 
input[type='password'] {
    border: 1px solid #ccc;
    text-align: center;
    background-color: #fafafa;
    transition: all 0.2s;
}

input[type='text']:focus, 
input[type='password']:focus {
    border-color: #41A4ED;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(65, 164, 237, 0.1);
}

/* Button - Snappy & Centered */
input[name='submit'] {
    background-color: #41A4ED;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    margin-top: 5px; /* Minimal top margin */
    transition: background 0.2s;
}

input[name='submit']:hover {
    background-color: #3586c4;
}

/* Date/Time - Small & Subtle */
input[name='time'], 
input[name='date'] {
    border: none;
    background: transparent;
    color: #999;
    font-size: 11px;
    margin-top: 10px;
    text-align: center;
    width: 100%;
}