:root {
    --primary: #4F46E5;
    --secondary: #7C3AED;
    --dark: #111827;
    --light: #F3F4F6;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
}

.login-container {
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    font-weight: 700;
}

.glow-bar {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    margin: 15px auto 30px;
    width: 50%;
}

.custom-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    height: 60px;
}

.custom-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(79, 70, 229, 0.3);
    color: #fff;
}

.form-floating > label {
    color: rgba(255, 255, 255, 0.6);
    height: 60px;
    padding: 1rem 1rem;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out,transform .1s ease-in-out;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--primary);
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    z-index: 5;
}

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

.neon-checkbox .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.neon-checkbox .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.neon-checkbox .form-check-label {
    color: rgba(255, 255, 255, 0.8);
}

.error-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #EF4444;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.neon-btn {
    position: relative;
    padding: 15px 30px;
    background: transparent;
    color: var(--primary);
    border: none;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    overflow: hidden;
    transition: 0.5s;
    cursor: pointer;
}

.neon-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 25px var(--primary);
}

.neon-btn span {
    position: absolute;
    background: var(--primary);
}

.neon-btn span:nth-child(1) {
    width: 100%;
    height: 2px;
    top: 0;
    left: -100%;
    animation: neon1 1s linear infinite;
}

.neon-btn span:nth-child(2) {
    width: 2px;
    height: 100%;
    top: -100%;
    right: 0;
    animation: neon2 1s linear infinite;
    animation-delay: 0.25s;
}

.neon-btn span:nth-child(3) {
    width: 100%;
    height: 2px;
    bottom: 0;
    right: -100%;
    animation: neon3 1s linear infinite;
    animation-delay: 0.5s;
}

.neon-btn span:nth-child(4) {
    width: 2px;
    height: 100%;
    bottom: -100%;
    left: 0;
    animation: neon4 1s linear infinite;
    animation-delay: 0.75s;
}

@keyframes neon1 { 0% { left: -100%; } 50%, 100% { left: 100%; } }
@keyframes neon2 { 0% { top: -100%; } 50%, 100% { top: 100%; } }
@keyframes neon3 { 0% { right: -100%; } 50%, 100% { right: 100%; } }
@keyframes neon4 { 0% { bottom: -100%; } 50%, 100% { bottom: 100%; } }

.links-section {
    text-align: center;
}

.gradient-link {
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.gradient-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.divider span {
    background-color: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 0 15px;
}

@media (max-width: 576px) {
    .glass-card {
        padding: 20px;
    }
    
    .gradient-text {
        font-size: 1.5rem;
    }
}
