JIT
friendly css styling for a modern login page
/* === Reset === */ body, h1, p, a { margin: 0; padding: 0; } /* === Global === */ body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f9f9f9; color: #333; font-size: 18px; line-height: 1.6; } /* === Navbar === */ .navbar { display: flex; justify-content: space-between; align-items: center; background-color: #007bff; padding: 18px 28px; } .navbar a { color: #fff; text-decoration: none; margin-left: 28px; font-size: 1.2rem; transition: color 0.2s ease-in-out; } .navbar a:hover { color: #dce9ff; } .navbar-brand { font-weight: bold; font-size: 1.4rem; margin-right: auto; } /* === Page body === */ .body-content { max-width: 1000px; margin: 60px auto; padding: 0 25px; } .body-content hr { margin-top: 50px; border: none; border-top: 1px solid #ddd; } /* === Login container === */ .login-container { display: flex; justify-content: center; align-items: center; min-height: 75vh; } /* === Card === */ .login-card { background: #fff; padding: 40px; width: 100%; max-width: 480px; border-radius: 14px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); } .login-card h2 { text-align: center; margin-bottom: 28px; color: #333; font-size: 2rem; } /* === Form === */ .form-inner { padding: 0 10px; /* balanced breathing room */ } .form-group { margin-bottom: 22px; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 1rem; color: #444; } .form-group input { width: 100%; padding: 12px 14px; border: 1px solid #ccc; border-radius: 10px; font-size: 1rem; outline: none; transition: border-color 0.2s; } .form-group input:focus { border-color: #007bff; } /* === Buttons === */ .btn { display: inline-block; padding: 14px 20px; font-size: 1.05rem; border-radius: 10px; text-align: center; cursor: pointer; transition: background 0.2s, color 0.2s; border: none; } .btn.primary { background-color: #007bff; color: #fff; } .btn.primary:hover { background-color: #0056b3; } .btn.full { width: 100%; } /* === Footer link === */ .form-footer { text-align: center; margin-top: 20px; } .form-footer a { color: #007bff; text-decoration: none; font-size: 0.95rem; } .form-footer a:hover { text-decoration: underline; }
Updated files
v1
center the input fields, it must have equal spaces from left to right, you know what, everything inside the card must be centered, just add a card footer that is safe from centering but has its own ordering
Updated files
v2