* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #f0f2f8;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.5rem 1rem 2.5rem;
    box-sizing: border-box;
}

/* Gradient orbs from logo colors */
body::before {
    content: '';
    position: absolute;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(46,134,193,0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px; right: -150px;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(160,24,48,0.10) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -180px; left: -150px;
    pointer-events: none;
}

.login-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(46,134,193,0.12), 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    z-index: 1;
    animation: slideUp 0.45s ease-out;
    overflow: visible;
    max-width: 100%;
}

/* Top gradient bar */
.login-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #2E86C1, #6B3A7D, #A01830);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    padding: 1.75rem 0 0.75rem;
}

.login-header h2 {
    font-weight: 700;
    margin-bottom: 0.4rem;
    background: linear-gradient(135deg, #2E86C1, #6B3A7D, #A01830);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p { color: #6c757d; margin: 0; }

.form-label { font-weight: 600; color: #495057; margin-bottom: 0.4rem; }

.form-control {
    border-radius: 10px;
    padding: 0.7rem 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.25s ease;
}

.form-control:focus {
    border-color: #2E86C1;
    box-shadow: 0 0 0 0.2rem rgba(46,134,193,0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #2E86C1, #6B3A7D, #A01830);
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 600;
    transition: all 0.25s ease;
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a9ad9, #7d4591, #c01e38);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46,134,193,0.35);
    color: #fff;
}

.input-group-icon { position: relative; }

.input-group-icon i {
    position: absolute;
    left: 15px; top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

.input-group-icon .form-control { padding-left: 45px; }

/* OTP Tab pills */
.nav-pills .nav-link {
    color: #4a4f6a;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #2E86C1, #6B3A7D, #A01830);
    border-color: transparent;
    color: #fff;
}
