/* Modern Ultra-Premium Login Styling */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Hind+Siliguri:wght@500;600;700&display=swap');

body.login {
    background: #090d16 !important;
    font-family: 'Plus Jakarta Sans', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 30px 15px;
}

/* Ambient dynamic mesh glow */
body.login::before {
    content: '';
    position: fixed;
    top: -160px;
    left: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.38) 0%, rgba(37, 99, 235, 0) 70%);
    border-radius: 50%;
    filter: blur(65px);
    z-index: 0;
    pointer-events: none;
}

body.login::after {
    content: '';
    position: fixed;
    bottom: -160px;
    right: -120px;
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(16, 185, 129, 0) 70%);
    border-radius: 50%;
    filter: blur(75px);
    z-index: 0;
    pointer-events: none;
}

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.login-card {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 36px 32px 34px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.login-brand {
    text-align: center;
    margin-bottom: 22px;
}

.login-brand-logo {
    display: inline-block;
    padding: 8px 18px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    border: 1.5px solid #f1f5f9;
    margin-bottom: 12px;
    max-width: 160px;
    transition: transform 0.2s ease;
}

.login-brand-logo:hover {
    transform: translateY(-1px);
}

.login-brand-logo img {
    max-height: 64px;
    max-width: 130px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.login-org-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
    line-height: 1.35;
    font-family: 'Hind Siliguri', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.2px;
}

.login-subheading {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Tab Switcher between Admin and Member login */
.login-type-tabs {
    display: flex;
    background: #f1f5f9;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 22px;
    gap: 4px;
    border: 1px solid #e2e8f0;
}

.login-type-tab {
    flex: 1;
    text-align: center;
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    border-radius: 9px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.login-type-tab:hover {
    color: #1e293b;
    text-decoration: none;
}

.login-type-tab.active {
    background: #ffffff;
    color: #2563eb;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Modern Inputs */
.login-form-group {
    margin-bottom: 18px;
    text-align: left;
}

.login-input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.input-group-modern {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 2;
}

.input-icon-right {
    position: absolute;
    right: 14px;
    color: #94a3b8;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
    padding: 6px;
}

.input-icon-right:hover {
    color: #2563eb;
}

.form-control-modern {
    width: 100%;
    height: 46px;
    background-color: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 11px;
    padding: 10px 42px 10px 42px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    transition: all 0.2s ease-in-out;
    outline: none;
}

.form-control-modern:focus {
    background-color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-control-modern:focus ~ .input-icon-left {
    color: #2563eb;
}

/* Submit Button */
.btn-login-submit {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 22px -3px rgba(37, 99, 235, 0.42);
    transition: all 0.25s ease;
    margin-top: 12px;
}

.btn-login-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 26px -3px rgba(37, 99, 235, 0.52);
    color: #ffffff;
}

.btn-login-submit:active {
    transform: translateY(0);
}

.btn-login-submit.btn-member-submit {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 10px 22px -3px rgba(5, 150, 105, 0.42);
}

.btn-login-submit.btn-member-submit:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    box-shadow: 0 14px 26px -3px rgba(5, 150, 105, 0.52);
}

/* Divider & Alternate Login Portal Button */
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0 16px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.login-divider span {
    padding: 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.btn-member-login-portal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 46px;
    background: #f8fafc;
    color: #2563eb;
    border: 1.5px solid #dbeafe;
    border-radius: 11px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-member-login-portal:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
    text-decoration: none;
}

.btn-member-login-portal:active {
    transform: translateY(0);
}

/* Alerts */
.login-alert {
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 16px;
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.login-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.login-alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

.login-alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.alert-close-btn {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 0 4px;
    transition: opacity 0.15s ease;
}

.alert-close-btn:hover {
    opacity: 1;
}

/* Footer Attribution */
.login-footer {
    text-align: center;
    margin-top: 24px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.login-footer p {
    margin: 0;
}

.login-footer b {
    color: #38bdf8;
    font-weight: 700;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .login-card {
        padding: 28px 20px 24px;
        border-radius: 18px;
    }
}
