/* ===================================
CSS VARIABLES & RESET
=================================== */
:root {
/* Colors - Matching Sellora Design */
--primary-color: #4F46E5;
--primary-hover: #4338CA;
--text-primary: #111827;
--text-secondary: #6B7280;
--text-tertiary: #9CA3AF;
--text-white: #FFFFFF;
--bg-white: #FFFFFF;
--bg-light: #F9FAFB;
--bg-gray: #F3F4F6;
--border-color: #E5E7EB;
--blue-gradient-start: #4F46E5;
--blue-gradient-end: #7C3AED;
/* Shadows */
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
/* Spacing */
--spacing-xs: 0.5rem;
--spacing-sm: 0.75rem;
--spacing-md: 1rem;
--spacing-lg: 1.5rem;
--spacing-xl: 2rem;
/* Border Radius */
--radius-sm: 0.375rem;
--radius-md: 0.5rem;
--radius-lg: 0.75rem;
/* Transitions */
--transition: 150ms ease;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
background: var(--bg-light);
color: var(--text-primary);
line-height: 1.5;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* ===================================
MAIN CONTAINER
=================================== */
.container {
display: grid;
grid-template-columns: 1fr 1fr;
min-height: 100vh;
}
/* ===================================
LEFT SECTION - LOGIN FORM
=================================== */
.left-section {
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
background: var(--bg-white);
}
.login-wrapper {
width: 100%;
max-width: 400px;
}
/* Brand */
.brand {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 3rem;
}
.brand-name {
font-size: 1.25rem;
font-weight: 700;
color: var(--text-primary);
}
/* Welcome Text */
.welcome-text {
margin-bottom: 2rem;
}
.welcome-text h1 {
font-size: 1.875rem;
font-weight: 700;
color: var(--text-primary);
margin-bottom: 0.5rem;
line-height: 1.2;
}
.welcome-text p {
font-size: 0.875rem;
color: var(--text-secondary);
line-height: 1.5;
}
/* ===================================
LOGIN FORM
=================================== */
.loginform {
margin-bottom: 2rem;
}
/* Input Groups */
.inputgroup {
margin-bottom: 1rem;
}
.inputgroup.topmarginlarge {
margin-top: 1rem;
}
.inputgroup label {
display: block;
font-size: 0.875rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 0.5rem;
}
.inputgroup input {
width: 100%;
padding: 0.625rem 0.875rem;
font-size: 0.9375rem;
font-family: inherit;
color: var(--text-primary);
background: var(--bg-white);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
outline: none;
transition: all var(--transition);
}
.inputgroup input:focus {
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.inputgroup input::placeholder {
color: var(--text-tertiary);
}
/* Password Wrapper with Eye Icon */
.password-wrapper {
position: relative;
}
.password-wrapper input {
padding-right: 2.5rem;
}
.toggle-password {
position: absolute;
right: 0.75rem;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
cursor: pointer;
padding: 0.25rem;
display: flex;
align-items: center;
justify-content: center;
color: var(--text-tertiary);
transition: color var(--transition);
}
.toggle-password:hover {
color: var(--text-secondary);
}
/* Form Options */
.form-options {
display: flex;
justify-content: space-between;
align-items: center;
margin: 1rem 0;
font-size: 0.875rem;
}
.remember-me {
display: flex;
align-items: center;
gap: 0.5rem;
cursor: pointer;
color: var(--text-primary);
font-weight: 400;
user-select: none;
}
.remember-me input[type="checkbox"] {
width: 1rem;
height: 1rem;
border: 1px solid var(--border-color);
border-radius: 0.25rem;
cursor: pointer;
accent-color: var(--primary-color);
}
.forgot-password {
color: var(--primary-color);
text-decoration: none;
font-weight: 500;
transition: color var(--transition);
}
.forgot-password:hover {
color: var(--primary-hover);
}
/* ===================================
LOGIN BUTTONS
=================================== */
.divcallforaction {
display: flex;
flex-direction: column;
gap: 0.75rem;
margin-bottom: 1.5rem;
}
.divcallforaction.topmarginlarge {
margin-top: 1.5rem;
}
.btnlogin {
width: 100%;
padding: 0.75rem 1rem;
font-size: 0.9375rem;
font-weight: 600;
font-family: inherit;
border: none;
border-radius: var(--radius-md);
cursor: pointer;
transition: all var(--transition);
}
/* Active State */
.btnlogin.activecolor {
background: var(--primary-color);
color: var(--text-white);
}
.btnlogin.activecolor:hover {
background: var(--primary-hover);
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}
.btnlogin.activecolor:active {
transform: translateY(0);
}
/* Inactive State */
.btnlogin.inactivecolor {
background: var(--bg-gray);
color: var(--text-tertiary);
cursor: pointer; /* Changed to pointer to make it always clickable visually */
}
.btnlogin:disabled {
cursor: not-allowed;
}
/* Secondary Button (Student) */
#sbtnLogin.activecolor {
background: var(--bg-white);
color: var(--primary-color);
border: 1px solid var(--primary-color);
}
#sbtnLogin.activecolor:hover {
background: var(--primary-color);
color: var(--text-white);
}
/* ===================================
OR DIVIDER
=================================== */
.or-divider {
display: flex;
align-items: center;
text-align: center;
margin: 1.5rem 0;
color: var(--text-tertiary);
font-size: 0.875rem;
}
.or-divider::before,
.or-divider::after {
content: '';
flex: 1;
border-bottom: 1px solid var(--border-color);
}
.or-divider span {
padding: 0 0.75rem;
}
/* ===================================
SOCIAL LOGIN
=================================== */
.social-login {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.75rem;
margin-bottom: 1.5rem;
}
.social-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.75rem 1rem;
font-size: 0.9375rem;
font-weight: 500;
font-family: inherit;
background: var(--bg-white);
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
cursor: pointer;
transition: all var(--transition);
color: var(--text-primary);
}
.social-btn:hover {
background: var(--bg-light);
border-color: var(--text-tertiary);
}
.social-btn svg {
flex-shrink: 0;
}
/* ===================================
REGISTER LINK
=================================== */
.register-link {
text-align: center;
font-size: 0.875rem;
color: var(--text-secondary);
}
.register-link a {
color: var(--primary-color);
text-decoration: none;
font-weight: 600;
transition: color var(--transition);
}
.register-link a:hover {
color: var(--primary-hover);
}
/* ===================================
LOGIN FOOTER
=================================== */
.login-footer {
margin-top: 3rem;
padding-top: 1.5rem;
border-top: 1px solid var(--border-color);
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.8125rem;
color: var(--text-tertiary);
}
.login-footer a {
color: var(--text-tertiary);
text-decoration: none;
transition: color var(--transition);
}
.login-footer a:hover {
color: var(--text-secondary);
}
/* ===================================
RIGHT SECTION - FEATURE SHOWCASE
=================================== */
.right-section {
background: linear-gradient(135deg, var(--blue-gradient-start) 0%, var(--blue-gradient-end) 100%);
padding: 3rem;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
/* Animated Background Elements */
.right-section::before {
content: '';
position: absolute;
top: -10%;
right: -10%;
width: 500px;
height: 500px;
background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
border-radius: 50%;
animation: float 20s ease-in-out infinite;
}
.right-section::after {
content: '';
position: absolute;
bottom: -10%;
left: -10%;
width: 400px;
height: 400px;
background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
border-radius: 50%;
animation: float 25s ease-in-out infinite reverse;
}
@keyframes float {
0%, 100% { transform: translate(0, 0); }
50% { transform: translate(-30px, -30px); }
}
.feature-content {
max-width: 600px;
color: var(--text-white);
position: relative;
z-index: 1;
}
.feature-content h2 {
font-size: 2.25rem;
font-weight: 700;
line-height: 1.2;
margin-bottom: 1rem;
}
.feature-content > p {
font-size: 1rem;
opacity: 0.9;
margin-bottom: 2.5rem;
line-height: 1.6;
}
/* Dashboard Preview */
.dashboard-preview {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 1rem;
padding: 1.5rem;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.dashboard-preview img {
width: 100%;
height: auto;
display: block;
border-radius: 0.5rem;
}
/* ===================================
RESPONSIVE DESIGN
=================================== */
/* Tablets and Below */
@media (max-width: 1024px) {
.container {
    grid-template-columns: 1fr;
}
.right-section {
    display: none;
}
}
/* Mobile */
@media (max-width: 640px) {
.left-section {
    padding: 1.5rem;
}
.login-wrapper {
    max-width: 100%;
}
.brand {
    margin-bottom: 2rem;
}
.welcome-text {
    margin-bottom: 1.5rem;
}
.welcome-text h1 {
    font-size: 1.5rem;
}
.welcome-text p {
    font-size: 0.8125rem;
}
.social-login {
    grid-template-columns: 1fr;
}
.login-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}
}
/* Small Mobile */
@media (max-width: 375px) {
.left-section {
    padding: 1rem;
}
.brand svg {
    width: 28px;
    height: 28px;
}
.brand-name {
    font-size: 1.125rem;
}
.welcome-text h1 {
    font-size: 1.375rem;
}
}
/* Dashboard Mock Cards */
.mock-dashboard {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}
.mock-dashboard .card {
background: rgba(255, 255, 255, 0.15);
border-radius: 0.75rem;
padding: 1.2rem;
text-align: left;
backdrop-filter: blur(8px);
border: 1px solid rgba(255,255,255,0.2);
transition: transform 0.3s ease;
}
.mock-dashboard .card:hover {
transform: translateY(-5px);
}
.mock-dashboard .card.large {
grid-column: span 2;
}
.mock-dashboard i {
font-size: 1.8rem;
margin-bottom: 0.5rem;
color: white;
}
.mock-dashboard h4 {
font-size: 1rem;
margin-bottom: 0.3rem;
color: white;
}
.mock-dashboard p {
font-size: 0.8rem;
opacity: 0.85;
}
/* ── Admin Login Button ── */
.admin-login-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 14px;
    color: #9CA3AF;
    font-size: 0.78rem;
}
.admin-login-divider::before,
.admin-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E5E7EB;
}
/* ── Admin button: enabled state ── */
#abtnLogin {
    width: 100%;
    padding: 11px 0;
    border: 2px solid #003366;
    border-radius: 8px;
    background: transparent;
    color: #003366;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
/* ── Hover: only when button is enabled ── */
#abtnLogin:not(:disabled):hover {
    background: #003366;
    color: #ffffff;
}
/* ── Disabled state ── */
#abtnLogin:disabled {
    border-color: #D1D5DB;
    color: #9CA3AF;
    cursor: not-allowed;
    background: transparent;
}
#abtnLogin i {
    font-size: 0.85rem;
}
