Veda / static /css /login.css
sumit1901's picture
Upload 139 files
59d9f71 verified
Raw History Blame Contribute Delete
4.21 kB
/* ================= RESET ================= */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: 'Inter', sans-serif;
}
body {
color: #1E3A32;
min-height: 100vh;
padding-top: 200px;
max-width: 100%;
}
/* ================= NAVBAR ================= */
nav {
width: 100%;
background: #1E3A32;
color: #EDF5E1;
padding: 12px 20px;
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
top: 0;
left: 0;
z-index: 1003;
}
nav .logo {
font-size: 20px;
font-weight: 600;
}
.hamburger {
font-size: 28px;
background: none;
border: none;
color: #EDF5E1;
cursor: pointer;
}
/* ================= HEADER ================= */
.header-left {
display: flex;
align-items: center;
gap: 14px;
}
.header-left img {
width: 48px;
height: 48px;
border-radius: 50%;
}
.header-left .title {
font-size: 18px;
font-weight: 600;
}
.header-left .subtitle {
font-size: 12px;
color: #379683;
}
.header-right img {
width: 40px;
height: 40px;
border-radius: 50%;
}
/* ================= LOGIN CARD ================= */
.login-container {
max-width: 600px;
margin: 40px auto;
background: rgba(255,255,255,0.75);
backdrop-filter: blur(14px);
padding: 28px;
border-radius: 14px;
border: 1.5px solid rgba(5,56,107,0.25);
box-shadow: 0 10px 30px rgba(0, 4, 2, 0.507);
margin-bottom: 180px;
padding-top: 10px;
padding-bottom: 10px;
}
.login-container h2 {
text-align: center;
margin-bottom: 18px;
}
.login-container label {
font-size: 14px;
margin-bottom: 6px;
display: block;
}
.login-container input,
.login-container select {
width: 100%;
padding: 10px;
margin-bottom: 14px;
border-radius: 8px;
border: 1px solid rgba(5,56,107,0.35);
}
.login-container button {
width: 100%;
padding: 11px;
background: #23b189;
color: #EDF5E1;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
}
.login-container button:hover {
background: #379683;
}
.login-container p {
margin-top: 16px;
text-align: center;
font-size: 13px;
}
.login-container a {
color: #1E3A32;
font-weight: 600;
text-decoration: none;
}
.login-container a:hover {
text-decoration: underline;
}
/* ================= MOBILE ================= */
@media (max-width: 768px) {
header {
margin: 80px 10px 10px;
}
.login-container {
margin: 20px 12px;
}
}
/* ===== FLOATING LABEL INPUT (ALEXRUIX – UIVERSE) ===== */
.input-group {
position: relative;
margin-bottom: 18px;
}
.input-group .input {
width: 100%;
border: solid 1.5px #9e9e9e;
border-radius: 1rem;
background: none;
padding: 1rem;
font-size: 1rem;
color: #1E3A32;
transition: border 150ms cubic-bezier(0.4,0,0.2,1);
}
.input-group .user-label {
position: absolute;
left: 15px;
top: 0;
color: #6b7280;
pointer-events: none;
transform: translateY(1rem);
transition: 150ms cubic-bezier(0.4,0,0.2,1);
background: rgba(255,255,255,0.9);
padding: 0 .25em;
}
.input-group .input:focus,
.input-group .input:valid {
outline: none;
border: 1.5px solid #1E3A32;
}
.input-group .input:focus ~ .user-label,
.input-group .input:valid ~ .user-label {
transform: translateY(-50%) scale(0.8);
color: #1E3A32;
}
/* ===== FLOATING LABEL DROPDOWN (ALEXRUIX STYLE) ===== */
.input-group select.input {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
cursor: pointer;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2305386B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 16px center;
background-size: 14px;
}
/* Trigger floating label when option selected */
.input-group select.input:valid ~ .user-label {
transform: translateY(-50%) scale(0.8);
color: #1E3A32;
}