

.content {
    max-width: 420px;
    margin: 0 auto;
    padding: 0 16px; /* Safe side spacing on all screens */
    width: 100%;
}


/* Headings */
h1 {
    text-align: center;
    margin-bottom: 6px;
}

h2 {
    text-align: center;
    margin-bottom: 22px;
    color: #b0b0b0;
    font-weight: 500;
}

/* Form container (dark card style) */
#loginform {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 22px;
    width: 90%;
}

/* Labels */
#loginform label {
    display: block;
    font-size: 0.85em;
    color: #b0b0b0;
    margin: 14px 0 6px;
}

/* Inputs */
#loginform input[type="text"],
#loginform input[type="password"] {
    width: 90%;
    padding: 13px; /* Bigger tap area */
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px; /* Prevents iOS zoom on focus */
    transition: border-color 0.15s ease, background 0.15s ease;
}

#loginform input:focus {
    outline: none;
    border-color: #555555;
    background: #222222;
}

/* Login button */
#loginform button {
    margin-top: 20px;
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: #1a1a1a;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

#loginform button:hover {
    background: #202020;
    border-color: #3a3a3a;
}

/* Forgot password link */
#loginform a {
    display: inline-block;
    margin-top: 12px;
    color: #9a9a9a;
    text-decoration: none;
    font-size: 0.85em;
}

#loginform a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Mobile tweaks */
@media (max-width: 480px) {
    .content {
        padding: 0 14px; /* Slightly tighter but still safe */
    }

    #loginform {
        padding: 16px;
        border-radius: 10px;
    }

    .login-logo img {
        max-width: 130px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 0.95rem;
        margin-bottom: 18px;
    }
}