<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Multi Role Login</title>
<style>
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Segoe UI',sans-serif;
}
body{
min-height:100vh;
display:flex;
justify-content:center;
align-items:center;
background:linear-gradient(135deg,#0f0c29,#302b63,#24243e);
padding:20px;
}
/* Card */
.card{
width:100%;
max-width:500px;
background:#fff;
border-radius:25px;
overflow:hidden;
box-shadow:0 20px 50px rgba(0,0,0,.3);
animation:show .7s ease;
}
@keyframes show{
from{
opacity:0;
transform:translateY(30px);
}
to{
opacity:1;
transform:translateY(0);
}
}
/* Header */
.header{
padding:35px;
text-align:center;
color:white;
background:linear-gradient(135deg,#6d28d9,#2563eb);
}
.header h2{
margin-bottom:8px;
}
.header p{
opacity:.9;
}
/* Tabs */
.tabs{
display:flex;
background:#f8fafc;
}
.tabs label{
flex:1;
text-align:center;
padding:16px;
cursor:pointer;
font-weight:600;
transition:.3s;
border-bottom:3px solid transparent;
}
.tabs label:hover{
background:#eef2ff;
}
/* Hide radios */
input[type=radio]{
display:none;
}
/* Forms */
.content{
position:relative;
min-height:330px;
}
.form-box{
position:absolute;
width:100%;
padding:30px;
opacity:0;
visibility:hidden;
transition:.4s;
}
.form-box h3{
margin-bottom:20px;
color:#1e293b;
}
.input-group{
margin-bottom:18px;
}
.input-group input{
width:100%;
padding:14px;
border:1px solid #dbeafe;
border-radius:10px;
outline:none;
transition:.3s;
}
.input-group input:focus{
border-color:#2563eb;
box-shadow:0 0 10px rgba(37,99,235,.15);
}
.btn{
width:100%;
padding:14px;
border:none;
border-radius:10px;
cursor:pointer;
color:white;
font-size:16px;
font-weight:600;
background:linear-gradient(
135deg,
#6d28d9,
#2563eb
);
transition:.3s;
}
.btn:hover{
transform:translateY(-2px);
}
/* Show Active Tab */
#admin:checked ~ .content .admin-form,
#staff:checked ~ .content .staff-form,
#student:checked ~ .content .student-form{
opacity:1;
visibility:visible;
}
#admin:checked ~ .tabs .admin-tab,
#staff:checked ~ .tabs .staff-tab,
#student:checked ~ .tabs .student-tab{
color:#2563eb;
border-bottom-color:#2563eb;
background:white;
}
.footer{
text-align:center;
padding:15px;
color:#64748b;
border-top:1px solid #eee;
}
@media(max-width:500px){
.tabs{
flex-wrap:wrap;
}
.tabs label{
width:33.33%;
font-size:14px;
}
}
</style>
</head>
<body>
<div class="card">
<div class="header">
<h2>Smart School Portal</h2>
<p>Select your login portal</p>
</div>
<input type="radio" id="admin" name="role" checked>
<input type="radio" id="staff" name="role">
<input type="radio" id="student" name="role">
<div class="tabs">
<label for="admin" class="admin-tab">Admin</label>
<label for="staff" class="staff-tab">Staff</label>
<label for="student" class="student-tab">Student</label>
</div>
<div class="content">
<!-- Admin -->
<div class="form-box admin-form">
<h3>Administrator Login</h3>
<div class="input-group">
<input type="text" placeholder="Admin Username">
</div>
<div class="input-group">
<input type="password" placeholder="Password">
</div>
<button class="btn">
Login as Admin
</button>
</div>
<!-- Staff -->
<div class="form-box staff-form">
<h3>Staff Login</h3>
<div class="input-group">
<input type="email" placeholder="Staff Email">
</div>
<div class="input-group">
<input type="password" placeholder="Password">
</div>
<button class="btn">
Login as Staff
</button>
</div>
<!-- Student -->
<div class="form-box student-form">
<h3>Student Login</h3>
<div class="input-group">
<input type="text" placeholder="Roll Number">
</div>
<div class="input-group">
<input type="password" placeholder="Password">
</div>
<button class="btn">
Login as Student
</button>
</div>
</div>
<div class="footer">
Secure Multi-Role Authentication System
</div>
</div>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Multi Role Login</title>
<style>
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Segoe UI',sans-serif;
}
body{
min-height:100vh;
display:flex;
justify-content:center;
align-items:center;
background:linear-gradient(135deg,#0f0c29,#302b63,#24243e);
padding:20px;
}
/* Card */
.card{
width:100%;
max-width:500px;
background:#fff;
border-radius:25px;
overflow:hidden;
box-shadow:0 20px 50px rgba(0,0,0,.3);
animation:show .7s ease;
}
@keyframes show{
from{
opacity:0;
transform:translateY(30px);
}
to{
opacity:1;
transform:translateY(0);
}
}
/* Header */
.header{
padding:35px;
text-align:center;
color:white;
background:linear-gradient(135deg,#6d28d9,#2563eb);
}
.header h2{
margin-bottom:8px;
}
.header p{
opacity:.9;
}
/* Tabs */
.tabs{
display:flex;
background:#f8fafc;
}
.tabs label{
flex:1;
text-align:center;
padding:16px;
cursor:pointer;
font-weight:600;
transition:.3s;
border-bottom:3px solid transparent;
}
.tabs label:hover{
background:#eef2ff;
}
/* Hide radios */
input[type=radio]{
display:none;
}
/* Forms */
.content{
position:relative;
min-height:330px;
}
.form-box{
position:absolute;
width:100%;
padding:30px;
opacity:0;
visibility:hidden;
transition:.4s;
}
.form-box h3{
margin-bottom:20px;
color:#1e293b;
}
.input-group{
margin-bottom:18px;
}
.input-group input{
width:100%;
padding:14px;
border:1px solid #dbeafe;
border-radius:10px;
outline:none;
transition:.3s;
}
.input-group input:focus{
border-color:#2563eb;
box-shadow:0 0 10px rgba(37,99,235,.15);
}
.btn{
width:100%;
padding:14px;
border:none;
border-radius:10px;
cursor:pointer;
color:white;
font-size:16px;
font-weight:600;
background:linear-gradient(
135deg,
#6d28d9,
#2563eb
);
transition:.3s;
}
.btn:hover{
transform:translateY(-2px);
}
/* Show Active Tab */
#admin:checked ~ .content .admin-form,
#staff:checked ~ .content .staff-form,
#student:checked ~ .content .student-form{
opacity:1;
visibility:visible;
}
#admin:checked ~ .tabs .admin-tab,
#staff:checked ~ .tabs .staff-tab,
#student:checked ~ .tabs .student-tab{
color:#2563eb;
border-bottom-color:#2563eb;
background:white;
}
.footer{
text-align:center;
padding:15px;
color:#64748b;
border-top:1px solid #eee;
}
@media(max-width:500px){
.tabs{
flex-wrap:wrap;
}
.tabs label{
width:33.33%;
font-size:14px;
}
}
</style>
</head>
<body>
<div class="card">
<div class="header">
<h2>Smart School Portal</h2>
<p>Select your login portal</p>
</div>
<input type="radio" id="admin" name="role" checked>
<input type="radio" id="staff" name="role">
<input type="radio" id="student" name="role">
<div class="tabs">
<label for="admin" class="admin-tab">Admin</label>
<label for="staff" class="staff-tab">Staff</label>
<label for="student" class="student-tab">Student</label>
</div>
<div class="content">
<!-- Admin -->
<div class="form-box admin-form">
<h3>Administrator Login</h3>
<div class="input-group">
<input type="text" placeholder="Admin Username">
</div>
<div class="input-group">
<input type="password" placeholder="Password">
</div>
<button class="btn">
Login as Admin
</button>
</div>
<!-- Staff -->
<div class="form-box staff-form">
<h3>Staff Login</h3>
<div class="input-group">
<input type="email" placeholder="Staff Email">
</div>
<div class="input-group">
<input type="password" placeholder="Password">
</div>
<button class="btn">
Login as Staff
</button>
</div>
<!-- Student -->
<div class="form-box student-form">
<h3>Student Login</h3>
<div class="input-group">
<input type="text" placeholder="Roll Number">
</div>
<div class="input-group">
<input type="password" placeholder="Password">
</div>
<button class="btn">
Login as Student
</button>
</div>
</div>
<div class="footer">
Secure Multi-Role Authentication System
</div>
</div>
</body>
</html>