:root {
    --primary-color: #00a651; /* NSBM Brand Green */
    --primary-dark: #008741;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --border-color: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0f172a;
}

.login-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
}

/* Left Image Banner with NSBM Teal/Green Gradient */
.left-banner {
    flex: 1.2;
    background: url('../images/nsbm-campus.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3.5rem;
    color: #ffffff;
}

/* Photo එක උඩ තියෙන Green/Teal Overlay එක */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 60, 67, 0.88) 0%, rgba(0, 166, 81, 0.75) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.university-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.banner-text h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.banner-text h1 span {
    color: #4ade80; /* Light Green Accent */
}

.banner-text p {
    font-size: 0.95rem;
    color: #f1f5f9;
    max-width: 85%;
    line-height: 1.5;
}

/* Right Form Side */
.right-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: #ffffff;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.university-tag-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e6f7ef;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-header h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    font-weight: 700;
}

.form-header p {
    color: var(--text-gray);
    font-size: 0.88rem;
    margin-top: 4px;
    margin-bottom: 1.8rem;
}

/* Role Selector Tabs */
.role-tabs {
    position: relative;
    display: flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.tab-btn.active {
    color: #ffffff;
}

.tab-btn:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.active-glider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--primary-color);
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Input Fields */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
}

.input-box input {
    width: 100%;
    padding: 12px 40px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-box input:focus {
    border-color: var(--primary-color);
}

.toggle-eye {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    cursor: pointer;
}

/* Checkbox & Links */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
}

.remember-me {
    color: var(--text-gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 13px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

/* Footer Link */
.card-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.card-footer a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease, transform 0.2s ease;
}

.card-footer a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.card-footer a:hover::after {
    width: 100%;
}

.card-footer a:hover {
    color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .left-banner {
        display: none;
    }
}