:root {
/* Core colors */
--primary: #1a5f7a;
--primary-light: #247b9e;
--primary-dark: #134359;
--secondary: #f8f9fa;
--accent: #e3f2fd;

/* Text colors */
--text-primary: #2c3e50;
--text-secondary: #64748b;
--text-muted: #94a3b8;

/* Background colors */
--bg-primary: #ffffff;
--bg-secondary: #f8fafc;
--bg-tertiary: #f1f5f9;

/* Border colors */
--border-light: #e2e8f0;
--border-medium: #cbd5e1;
--border-focus: #93c5fd;

/* Shadow patterns */
--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06);
--shadow-input: 0 2px 4px rgba(0, 0, 0, 0.02);
--shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05);

/* Typography */
--font-primary: 'Work Sans', system-ui, -apple-system, sans-serif;
--text-xs: 0.75rem;
--text-sm: 0.875rem;
--text-base: 1rem;
--text-lg: 1.125rem;
--text-xl: 1.25rem;

/* Spacing */
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-6: 1.5rem;
--space-8: 2rem;

/* Border radius */
--radius-sm: 0.375rem;
--radius-md: 0.5rem;
--radius-lg: 0.75rem;
--radius-xl: 1rem;
--radius-full: 9999px;

/* Transitions */
--transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
--transition-transform: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
--transition-shadow: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);

/* Animation curves */
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
--ease-out: cubic-bezier(0, 0, 0.2, 1);
--ease-in: cubic-bezier(0.4, 0, 1, 1);
}

body {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-4);
position: relative;
overflow-x: hidden;
font-family: var(--font-primary);
background: linear-gradient(135deg, #0099ff 0%, #0043ff 100%);
background-size: 200% 200%;
animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
0% {
background-position: 0% 50%;
}

50% {
background-position: 100% 50%;
}

100% {
background-position: 0% 50%;
}
}

/* Subtle background pattern */
body::before {
content: '';
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image:
radial-gradient(circle at 20% 35%, var(--accent) 0%, transparent 50%),
radial-gradient(circle at 75% 44%, rgba(26, 95, 122, 0.07) 0%, transparent 50%);
opacity: 0.6;
pointer-events: none;
z-index: -1;
}

.login-container {
background: var(--bg-primary);
border-radius: var(--radius-xl);
overflow: hidden;
max-width: 900px;
width: 100%;
margin: var(--space-4);
position: relative;
box-shadow:
0 4px 6px -1px rgba(0, 0, 0, 0.05),
0 10px 15px -3px rgba(0, 0, 0, 0.1);
border: 1px solid var(--border-light);
}

/* Glass morphism effect */
.login-container::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
border-radius: inherit;
z-index: -1;
opacity: 0.95;
}

/* Enhance the left side gradient for better contrast with background */
.hero-background {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: url('../images/hero-bg.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
display: flex;
flex-direction: column;
justify-content: flex-end;
}

.overlay {
background: linear-gradient(to bottom,
rgba(26, 41, 128, 0.7),
rgba(38, 208, 206, 0.4));
}

.login-left {
position: relative;
min-height: 100%;
padding: 0 !important;
overflow: hidden;
border-top-left-radius: 24px;
border-bottom-left-radius: 24px;
}

.login-left-footer {
position: relative;
z-index: 2;
padding: 2rem;
width: 100%;
background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.login-left-footer a {
color: rgba(255, 255, 255, 0.9);
text-decoration: none;
display: block;
text-align: center;
padding: 0.5rem 0;
font-size: 0.9rem;
transition: color 0.3s ease;
}

.login-left-footer a:hover {
color: white;
}

.login-container {
max-width: 900px;
}

.row.g-0 {
display: flex;
}

.col-lg-6.login-left {
flex: 0 0 45%;
max-width: 45%;
}

.col-lg-6.login-right {
flex: 0 0 55%;
max-width: 55%;
}

.form-container {
width: 100%;
max-width: 380px;
margin: 0 auto;
padding: 0 1rem;
}

@media (max-width: 991.98px) {

.col-lg-6.login-left,
.col-lg-6.login-right {
flex: 0 0 100%;
max-width: 100%;
}

.form-container {
max-width: 400px;
}
}

.login-container {
background: var(--card-bg);
border-radius: 16px;
border: 1px solid var(--border-color);
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
overflow: hidden;
max-width: 800px;
width: 100%;
margin: 1rem;
min-height: auto;
}

.row.g-0 {
min-height: auto;
}

.university-logo {
display: flex;
align-items: center;
margin-bottom: 1.5rem;
gap: 1rem;
}

.university-logo img {
width: 60px;
height: 60px;
object-fit: contain;
background: white;
padding: 2px;
border-radius: 8px;
}

.university-title {
display: flex;
flex-direction: column;
}

.university-title h5 {
color: #1a2980;
font-family: Segoe Ui;
font-size: 1.1rem;
margin: 0;
font-weight: 600;
letter-spacing: -0.4px;
line-height: 1.2;
}

.university-title span {
color: #666;
font-size: 0.8rem;
margin-top: 2px;
}

/* Modern Form Styling */
.form-group {
position: relative;
margin-bottom: var(--space-6);
}

.input-with-icon {
position: relative;
display: flex;
align-items: center;
transition: var(--transition-all);
}

.input-icon {
position: absolute;
left: var(--space-4);
color: var(--text-muted);
font-size: var(--text-xl);
transition: var(--transition-all);
pointer-events: none;
}

.custom-input {
width: 100%;
height: 54px;
padding: var(--space-4) var(--space-4) var(--space-4) 3.25rem;
font-size: var(--text-base);
color: var(--text-primary);
background-color: var(--bg-secondary);
border: 1px solid var(--border-light);
border-radius: var(--radius-lg);
transition: var(--transition-all);
box-shadow: var(--shadow-input);
}

.custom-input:hover {
background-color: var(--bg-tertiary);
border-color: var(--border-medium);
}

.custom-input:focus {
background-color: var(--bg-primary);
border-color: var(--primary-light);
box-shadow:
0 0 0 3px rgba(26, 95, 122, 0.1),
var(--shadow-sm);
outline: none;
}

.input-with-icon:focus-within .input-icon {
color: var(--primary);
transform: translateY(-1px);
}

.custom-input::placeholder {
color: var(--text-muted);
font-size: var(--text-sm);
transition: var(--transition-all);
}

.custom-input:focus::placeholder {
color: var(--text-secondary);
}

/* Input label animation */
.input-with-icon::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px;
background: var(--primary);
transition: all 0.3s var(--ease-out);
border-radius: var(--radius-full);
}

.input-with-icon:focus-within::after {
width: calc(100% - 2px);
left: 1px;
}

.text-center.mb-4 {
margin-bottom: 0.75rem !important;
}

.text-center.mb-4 h3 {
font-size: 1.1rem;
margin-bottom: 0.25rem;
}

.text-center.mb-4 p {
font-size: 0.85rem;
margin-bottom: 0;
}

.btn-login {
width: 100%;
height: 54px;
padding: 0 var(--space-6);
font-size: var(--text-base);
font-weight: 600;
color: var(--bg-primary);
background: var(--primary);
border: none;
border-radius: var(--radius-lg);
transition: var(--transition-all);
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
letter-spacing: 0.3px;
box-shadow: var(--shadow-md);
}

.btn-login::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right,
transparent,
rgba(255, 255, 255, 0.1),
transparent);
transform: translateX(-100%);
transition: transform 0.5s var(--ease-out);
}

.btn-login:hover {
background: var(--primary-light);
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}

.btn-login:hover::before {
transform: translateX(100%);
}

.btn-login:active {
transform: translateY(1px);
box-shadow: var(--shadow-sm);
}

.btn-login .material-symbols-outlined {
font-size: var(--text-xl);
transition: var(--transition-transform);
}

.btn-login:hover .material-symbols-outlined {
transform: translateX(2px);
}

.login-type-toggle {
margin-top: 1rem;
}

.btn-toggle {
padding: 0.5rem 1rem;
font-size: 0.85rem;
}

.login-right {
background-color: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
display: flex;
flex-direction: column;
justify-content: center;
padding: 1.5rem;
}

/* Right side element colors */
.login-right .login-title,
.login-right h3 {
color: #333333;
}

.login-right p.text-muted {
color: #666666 !important;
}

.login-right .form-floating label {
color: #666666;
}

.login-right .form-control {
background-color: #f8f9fa;
border: 1px solid #dee2e6;
color: #333333;
}

.login-right .form-control:focus {
background-color: #ffffff;
border-color: #0095ff;
box-shadow: 0 0 0 0.2rem rgba(0, 149, 255, 0.15);
}

.login-right .btn-login {
background: #0095ff;
color: #ffffff;
}

.login-right .btn-login:hover {
background: #0077cc;
}

.login-right .btn-toggle {
background: #f8f9fa;
color: #666666;
border: 1px solid #dee2e6;
}

.login-right .btn-toggle:hover {
background: #e9ecef;
color: #333333;
}

.login-right .alert-danger {
background-color: #fff5f5;
border-color: #ffd7d7;
color: #dc3545;
}

/* Media Query for smaller screens */
@media (max-width: 991.98px) {
.login-container {
margin: 0.5rem;
max-width: 100%;
}

.login-right {
padding: 1.25rem;
}

.form-container {
max-width: 100%;
}
}

@media (max-width: 767.98px) {
.login-container {
margin: 0;
border-radius: 0;
}
}

/* CAPTCHA styling */
.captcha-container {
display: flex;
align-items: center;
gap: var(--space-3);
margin-bottom: var(--space-6);
}

.captcha-image {
border: 1px solid var(--border-medium);
border-radius: var(--radius-md);
padding: 2px;
background: white;
}

.captcha-input {
flex: 1;
height: 46px;
padding: var(--space-3);
font-size: var(--text-base);
color: var(--text-primary);
background-color: var(--bg-secondary);
border: 1px solid var(--border-light);
border-radius: var(--radius-lg);
transition: var(--transition-all);
}

.captcha-input:focus {
background-color: var(--bg-primary);
border-color: var(--primary-light);
box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
outline: none;
}

.refresh-captcha {
display: flex;
align-items: center;
justify-content: center;
width: 46px;
height: 46px;
background: var(--bg-secondary);
border: 1px solid var(--border-light);
border-radius: var(--radius-lg);
color: var(--text-secondary);
cursor: pointer;
transition: var(--transition-all);
}

.refresh-captcha:hover {
background: var(--bg-tertiary);
border-color: var(--border-medium);
color: var(--primary);
}

.form-container {
width: 100%;
max-width: 380px;
margin: 0 auto;
padding: 0 1rem;
}

@media (max-width: 991.98px) {

.col-lg-6.login-left,
.col-lg-6.login-right {
flex: 0 0 100%;
max-width: 100%;
}

.form-container {
max-width: 400px;
}
}

.login-container {
background: var(--card-bg);
border-radius: 16px;
border: 1px solid var(--border-color);
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
overflow: hidden;
max-width: 800px;
width: 100%;
margin: 1rem;
min-height: auto;
}

.row.g-0 {
min-height: auto;
}

.university-logo {
display: flex;
align-items: center;
margin-bottom: 1.5rem;
gap: 1rem;
}

.university-logo img {
width: 90px;
height: 90px;
object-fit: contain;
background: transparent ;
padding: 2px;
border-radius: 8px;
}

.university-title {
display: flex;
flex-direction: column;
}

.university-title h5 {
color: #1a2980;
font-size: 1.2rem;
margin: 0;
font-weight: 600;
letter-spacing: -0.2px;
line-height: 1.2;
text-align: center !important;
font-family: Segoe Ui !important;
}

.university-title span {
color: #666;
font-size: 0.8rem;
margin-top: 2px;
}

/* Modern Form Styling */
.form-group {
position: relative;
margin-bottom: var(--space-6);
}

.input-with-icon {
position: relative;
display: flex;
align-items: center;
transition: var(--transition-all);
}

.input-icon {
position: absolute;
left: var(--space-4);
color: var(--text-muted);
font-size: var(--text-xl);
transition: var(--transition-all);
pointer-events: none;
}

.custom-input {
width: 100%;
height: 54px;
padding: var(--space-4) var(--space-4) var(--space-4) 3.25rem;
font-size: var(--text-base);
color: var(--text-primary);
background-color: var(--bg-secondary);
border: 1px solid var(--border-light);
border-radius: var(--radius-lg);
transition: var(--transition-all);
box-shadow: var(--shadow-input);
}

.custom-input:hover {
background-color: var(--bg-tertiary);
border-color: var(--border-medium);
}

.custom-input:focus {
background-color: var(--bg-primary);
border-color: var(--primary-light);
box-shadow:
0 0 0 3px rgba(26, 95, 122, 0.1),
var(--shadow-sm);
outline: none;
}

.input-with-icon:focus-within .input-icon {
color: var(--primary);
transform: translateY(-1px);
}

.custom-input::placeholder {
color: var(--text-muted);
font-size: var(--text-sm);
transition: var(--transition-all);
}

.custom-input:focus::placeholder {
color: var(--text-secondary);
}

/* Input label animation */
.input-with-icon::after {
content: '';
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 2px;
background: var(--primary);
transition: all 0.3s var(--ease-out);
border-radius: var(--radius-full);
}

.input-with-icon:focus-within::after {
width: calc(100% - 2px);
left: 1px;
}

.text-center.mb-4 {
margin-bottom: 0.75rem !important;
}

.text-center.mb-4 h3 {
font-size: 1.1rem;
margin-bottom: 0.25rem;
}

.text-center.mb-4 p {
font-size: 0.85rem;
margin-bottom: 0;
}

.btn-login {
width: 100%;
height: 54px;
padding: 0 var(--space-6);
font-size: var(--text-base);
font-weight: 600;
color: var(--bg-primary);
background: var(--primary);
border: none;
border-radius: var(--radius-lg);
transition: var(--transition-all);
position: relative;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
letter-spacing: 0.3px;
box-shadow: var(--shadow-md);
}

.btn-login::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right,
transparent,
rgba(255, 255, 255, 0.1),
transparent);
transform: translateX(-100%);
transition: transform 0.5s var(--ease-out);
}

.btn-login:hover {
background: var(--primary-light);
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}

.btn-login:hover::before {
transform: translateX(100%);
}

.btn-login:active {
transform: translateY(1px);
box-shadow: var(--shadow-sm);
}

.btn-login .material-symbols-outlined {
font-size: var(--text-xl);
transition: var(--transition-transform);
}

.btn-login:hover .material-symbols-outlined {
transform: translateX(2px);
}

.login-type-toggle {
margin-top: 1rem;
}

.btn-toggle {
padding: 0.5rem 1rem;
font-size: 0.85rem;
}

.login-right {
background-color: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
display: flex;
flex-direction: column;
justify-content: center;
padding: 1.5rem;
}

/* Right side element colors */
.login-right .login-title,
.login-right h3 {
color: #333333;
}

.login-right p.text-muted {
color: #666666 !important;
}

.login-right .form-floating label {
color: #666666;
}

.login-right .form-control {
background-color: #f8f9fa;
border: 1px solid #dee2e6;
color: #333333;
}

.login-right .form-control:focus {
background-color: #ffffff;
border-color: #0095ff;
box-shadow: 0 0 0 0.2rem rgba(0, 149, 255, 0.15);
}

.login-right .btn-login {
background: #0095ff;
color: #ffffff;
}

.login-right .btn-login:hover {
background: #0077cc;
}

.login-right .btn-toggle {
background: #f8f9fa;
color: #666666;
border: 1px solid #dee2e6;
}

.login-right .btn-toggle:hover {
background: #e9ecef;
color: #333333;
}

.login-right .alert-danger {
background-color: #fff5f5;
border-color: #ffd7d7;
color: #dc3545;
}

/* Media Query for smaller screens */
@media (max-width: 991.98px) {
.login-container {
margin: 0.5rem;
max-width: 100%;
}

.login-right {
padding: 1.25rem;
}

.form-container {
max-width: 100%;
}
}

@media (max-width: 767.98px) {
.login-container {
margin: 0;
border-radius: 0;
}
}

.counterline {
  border-bottom: 3px solid #ffc107;
  display: inline-block;
  padding-bottom: 1px;
}