:root{
    --primary: #6f2dbd;
    --primary-hover: #5b21a8;
    --secondary: #2563eb;
    --text: #1f2937;
    --muted: #6b7280;
    --border: rgba(255,255,255,.28);
    --card-bg: rgba(255,255,255,.78);
    --input-bg: rgba(255,255,255,.88);
    --shadow: 0 20px 50px rgba(31, 41, 55, 0.12);
    --radius-xl: 24px;
    --radius-lg: 16px;
    --radius-md: 12px;
}

*{
    box-sizing: border-box;
}

body{
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    min-height: 100vh;
    background:
    radial-gradient(circle at top left, rgba(111,45,189,.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(37,99,235,.14), transparent 28%),
    linear-gradient(135deg, #eef2ff 0%, #f8fafc 45%, #eef2ff 100%);
}

.login-page{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    position: relative;
    overflow: hidden;
}

.login-page::before,
.login-page::after{
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(20px);
    z-index: 0;
}

.login-page::before{
    width: 320px;
    height: 320px;
    background: rgba(111,45,189,.10);
    top: -80px;
    left: -80px;
}

.login-page::after{
    width: 280px;
    height: 280px;
    background: rgba(37,99,235,.10);
    bottom: -80px;
    right: -80px;
}

.login-wrapper{
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
}

.brand{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    text-decoration: none;
}

.brand-logo{
    width: 95px;
    height: 95px;
    object-fit: contain;
    border-radius: 14px;
    background: rgba(255,255,255,.7);
    padding: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.brand-text{
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title{
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
}

.brand-subtitle{
    font-size: .9rem;
    color: var(--muted);
    margin-top: 4px;
}

.login-card{
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    padding: 32px;
}

.login-header{
    text-align: center;
    margin-bottom: 26px;
}

.login-header h1{
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.login-header p{
    margin: 0;
    color: var(--muted);
    font-size: .98rem;
}

.form-label{
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
}

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

.input-group-modern .form-control{
    height: 56px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(111,45,189,.14);
    background: var(--input-bg);
    padding-left: 46px;
    padding-right: 46px;
    font-size: .98rem;
    box-shadow: none;
    transition: all .25s ease;
}

.input-group-modern .form-control:focus{
    border-color: rgba(111,45,189,.55);
    box-shadow: 0 0 0 4px rgba(111,45,189,.10);
    background: #fff;
}

.input-icon,
.toggle-password{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #8b95a7;
    z-index: 5;
}

.input-icon{
    left: 16px;
    pointer-events: none;
}

.toggle-password{
    right: 16px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover{
    color: var(--primary);
}

.form-hint{
    font-size: .88rem;
    color: var(--muted);
    margin-top: 6px;
}

.btn-login{
    height: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .2px;
    box-shadow: 0 14px 28px rgba(89, 37, 168, .22);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.btn-login:hover{
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(89, 37, 168, .26);
    opacity: .98;
}

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

.login-footer{
    text-align: center;
    margin-top: 18px;
    font-size: .9rem;
    color: var(--muted);
}

.login-footer a{
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.invalid-feedback{
    font-size: .85rem;
}

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

    .brand-title{
    font-size: 1.55rem;
    }

    .login-header h1{
    font-size: 1.5rem;
    }

    .brand-logo{
    /* width: 46px;
    height: 46px; */
    }
}