.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ef 100%);
     padding: 2rem;
}
.login-card, .login-card * {
    box-sizing: border-box;
}
.login-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 8px 30px -8px rgba(37,99,235,0.15);
    max-width: 400px;
    width: 100%;
    padding: 2rem 2rem 1.5rem 2rem;
    position: relative;
}
.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.login-header-image {
    display: block;
    max-width: 100%;
    height: auto;
    width: 220px;
    margin: 0 auto;
}
.login-logo {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, #221760, #2a1f7a);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem auto;
}
.login-logo svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #fff;
}
.login-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #221760;
    margin-bottom: 0.25rem;
}
.login-desc {
    color: #64748b;
    font-size: 1rem;
}
.success-message {
    background: #dcfce7;
    border: 1px solid #22c55e;
    color: #15803d;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-align: center;
}
.tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.tab {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border 0.2s;
}
.tab.active {
    color: #221760;
    border-bottom: 2px solid #221760;
    background: #f1f5f9;
}
.role-group {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 0.5rem;
}
.role-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    background: #f8fafc;
    transition: border 0.2s, background 0.2s;
    font-size: 0.95rem;
}
.role-option.selected {
    border: 2px solid #221760;
    background: #e0e7ef;
    color: #221760;
}
.form-group {
    margin-bottom: 1rem;
}
.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #1e293b;
}
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: #f8fafc;
    color: #1e293b;
    transition: border 0.2s;
    padding-right: 2.75rem;
}
.form-input:focus {
    border-color: #221760;
    outline: none;
}
.form-row {
    display: flex;
    gap: 1rem;
}
.form-group {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
}
.show-password-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 1.1rem;
}
.show-password-btn svg { width: 1.25rem; height: 1.25rem; display: block; }
.form-group .form-label { grid-row: 1; grid-column: 1; }
.form-group .form-input { grid-row: 2; grid-column: 1; }
.form-group .show-password-btn {
    grid-row: 2;
    grid-column: 1;
    justify-self: end;
    align-self: center;
    margin-right: 1rem;
    z-index: 1;
}
.remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.remember-label {
    font-size: 0.95rem;
    color: #64748b;
    margin-left: 0.5rem;
}
.forgot-link {
    font-size: 0.95rem;
    color: #221760;
    text-decoration: none;
}
.forgot-link:hover {
    text-decoration: underline;
}
.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #221760, #2a1f7a);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.75rem 0;
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 10px -2px rgba(37,99,235,0.08);
    transition: opacity 0.2s, transform 0.2s;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.submit-btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}
.terms-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 1rem;
}
.portal-info {
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}
.back-home {
    text-align: center;
    margin-top: 1.5rem;
}
.back-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.back-btn:hover {
    color: #221760;
}
.footer {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 2rem;
}            
