.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.08) 0%, transparent 50%);
    animation: pulse 15s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.login-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    position: relative;
    backdrop-filter: blur(10px);
}

.login-header {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    padding: 40px 30px 35px;
    text-align: center;
    position: relative;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: white;
    border-radius: 24px 24px 0 0;
}

.login-logo {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.4);
}

.login-logo i {
    font-size: 32px;
    color: white;
}

.login-header h2 {
    color: white;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 0.9rem;
}

.login-body {
    padding: 30px;
    position: relative;
}

.login-type-btn {
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 12px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.login-type-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0f3460;
    transform: scaleY(0);
    transition: transform 0.3s;
}

.login-type-btn:hover {
    border-color: #0f3460;
    background: white;
    transform: translateX(4px);
}

.login-type-btn:hover::before {
    transform: scaleY(1);
}

.login-type-btn .icon-wrap {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.login-type-btn:nth-child(2) .icon-wrap {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.login-type-btn .icon-wrap i {
    color: white;
    font-size: 18px;
}

.login-type-btn h5 {
    margin: 0 0 4px 0;
    color: #0f3460;
    font-weight: 600;
    font-size: 1rem;
}

.login-type-btn small {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
}

.login-body .form-control {
    border-radius: 12px;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.login-body .form-control:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 4px rgba(15, 52, 96, 0.1);
}

.login-body .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.btn-login {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    margin-top: 10px;
    color: white;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 52, 96, 0.35);
    color: white;
}

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

.btn-back {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 8px 0;
    margin-top: 15px;
    cursor: pointer;
}

.btn-back:hover {
    color: #0f3460;
}

.login-body .input-group-text {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    border-left: none;
    background: white;
}

.login-body .input-group .form-control {
    border-right: none;
    border-radius: 0 12px 12px 0;
}

.login-body .input-group-text i {
    color: #6c757d;
}

.login-body .input-group {
    flex-direction: row !important;
}

.login-body .input-group > * {
    width: auto;
    margin-bottom: 0;
}

.fade-in {
    animation: fadeIn 0.4s ease-out;
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #adb5bd;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    padding: 0 15px;
}

.password-toggle {
    cursor: pointer;
    border-left: none;
    transition: background 0.3s;
}

.password-toggle:hover {
    background: #f8f9fa;
}

.password-toggle i {
    color: #6c757d;
}

.form-switch {
    padding-left: 2.5rem;
}

.form-switch .form-check-input {
    width: 2.5rem;
    height: 1.25rem;
    cursor: pointer;
}

.form-switch .form-check-input:checked {
    background-color: #0f3460;
    border-color: #0f3460;
}

.form-switch .form-check-label {
    cursor: pointer;
    color: #495057;
}
