/* Reset and base styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Arial', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #f7fafd;
    color: #222;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

/* Logo at the top */
.logo-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 16px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e8f0fe;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.logo-placeholder img {
    max-width: 60px;
    max-height: 60px;
}

/* Main container */
.container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Login form */
.login-form {
    width: 100%;
    max-width: 97%; /* Add this line to prevent overflow */
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(2, 136, 209, 0.08);
    padding: 32px 20px 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 18px;
    box-sizing: border-box; /* Add this to include padding in width */
}

.login-form h2 {
    text-align: center;
    font-size: 1.5em;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #1d9bf0;
    letter-spacing: 0.5px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 97%;
    min-width: 0; /* Add this to prevent overflow in flexbox */
    box-sizing: border-box; /* Add this to include padding in width */
    padding: 14px 12px;
    border: 1.5px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1em;
    background: #f7fafd;
    transition: border 0.2s;
    outline: none;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #1d9bf0;
    background: #fff;
}

.login-form button {
    width: 97%;
    padding: 14px 0;
    background: #1d9bf0;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.login-form button:hover,
.login-form button:focus {
    background: #1a8cd8;
}

.error {
    color: #e0245e;
    background: #fff0f3;
    border: 1px solid #f8bbd0;
    border-radius: 8px;
    padding: 10px 0;
    text-align: center;
    margin-top: 8px;
    font-size: 1em;
}

/* Footer styles */
.footer {
    text-align: center;
    color: #8899a6;
    font-size: 0.95em;
    margin: 32px 0 8px 0;
    letter-spacing: 0.2px;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
}
.footer-logo img {
    max-width: 60px;
    max-height: 60px;
}

/* Responsive: Mobile first */
@media (max-width: 600px) {
    .container {
        max-width: 100vw;
        padding: 0 8px;
    }
    .login-form {
        max-width: 100%; /* Add this to allow full width on mobile */
        padding: 24px 8px 18px 8px;
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 12px;
    }
    .logo-placeholder {
        margin-top: 24px;
        margin-bottom: 10px;
        width: 64px;
        height: 64px;
    }
    .footer-logo img {
        max-width: 44px;
        max-height: 44px;
    }
    .footer {
        margin: 18px 0 6px 0;
    }
}