Rankmate / static /css /register.css
sumit1901's picture
Upload 44 files
48322a4 verified
Raw History Blame Contribute Delete
2.77 kB
/* --- THEME CONSTANTS --- */
:root {
--dark-bg: #111827;
--primary: #6366f1;
--text-muted: #6b7280;
--border-color: #e5e7eb;
}
body {
background-color: #f3f4f6;
margin: 0;
font-family: 'Poppins', sans-serif;
}
/* --- AUTH PAGE LAYOUT (Centering Fix) --- */
.auth-page-wrapper {
min-height: 100vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}
.auth-container {
background: white;
width: 100%;
max-width: 700px;
padding: 40px;
border-radius: 20px;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(0,0,0,0.05);
}
.auth-header {
text-align: center;
margin-bottom: 30px;
}
/* --- GRID LAYOUT --- */
.grid-inputs {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 35px 20px;
margin-bottom: 20px;
}
/* --- INPUT GROUPS & FLOATING LABELS --- */
.input-group {
position: relative;
margin-bottom: 35px; /* Matched the standard spacing to the grid gap */
}
/* FIX: Remove margin inside grid since the grid row-gap handles it */
.grid-inputs .input-group {
margin-bottom: 0;
}
.input {
width: 100%;
padding: 14px;
border: 1.5px solid var(--border-color);
border-radius: 10px;
background: #fff;
font-size: 1rem;
box-sizing: border-box;
}
.user-label {
position: absolute;
left: 12px;
top: 14px;
color: var(--text-muted);
transition: 0.2s;
background: white;
padding: 0 5px;
pointer-events: none;
}
.input:focus {
outline: none;
border-color: var(--primary);
}
.input:focus ~ .user-label,
.input:not(:placeholder-shown) ~ .user-label {
top: -10px;
left: 8px;
font-size: 0.8rem;
color: var(--primary);
font-weight: 600;
}
/* --- BUTTONS & LINKS --- */
.btn-auth {
width: 100%;
padding: 14px;
background-color: var(--dark-bg);
color: white;
border: none;
border-radius: 10px;
font-weight: 600;
cursor: pointer;
transition: 0.3s;
margin-top: 10px;
}
.btn-auth:hover {
background-color: #000;
transform: translateY(-2px);
}
.auth-footer {
text-align: center;
margin-top: 20px;
}
.auth-footer a {
color: var(--primary);
text-decoration: none;
font-weight: 600;
}
/* --- RESPONSIVE DESIGN --- */
@media (max-width: 600px) {
.grid-inputs {
grid-template-columns: 1fr;
gap: 0;
}
.grid-inputs .input-group {
margin-bottom: 35px; /* Restore standard margin when stacked */
}
}