File size: 2,765 Bytes
48322a4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | /* --- 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 */
}
} |