.login-view {
    background-image: url('../img/home/background.png') !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(228, 228, 228, 0.2);
    z-index: 1;
    pointer-events: none;
}

.login-view .mask {
    display: none !important;
}

.login-view .card-body {
    padding: 40px !important;
    position: relative;
    z-index: 10;
}

.login-view .input-group {
    margin-bottom: 25px !important;
    position: relative;
    z-index: 15;
}

.login-view .form-label {
    color: #333 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

.login-view .card {
    animation: slideInUp 0.6s ease-out !important;
    position: relative;
    z-index: 10;
}

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

.login-logo {
    height: 100px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo .tarraf-logo {
    max-height: 120px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
    0% { 
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
        transform: scale(1);
    }
    100% { 
        filter: drop-shadow(0 10px 25px rgba(226, 229, 223, 0.5));
        transform: scale(1.05);
    }
}

.login-view .card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(230, 234, 227, 0.95) 50%, 
        rgba(228, 232, 224, 0.95) 100%) !important;
    border: 2px solid rgba(224, 226, 222, 0.6) !important;
    box-shadow: 
        0 30px 60px rgba(207, 207, 207, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
    border-radius: 32px !important;
    position: relative;
    z-index: 10;
    animation: cardFloat 1s ease-out !important;
    overflow: hidden;
    margin: 0 auto;
    max-width: 400px;
}

.login-view .card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, 
        #e6eae3 0%, 
        #e4e8e0 25%, 
        #e2e5df 50%, 
        #e0e2de 75%, 
        #dcdcdc 100%);
    border-radius: 34px;
    z-index: -1;
    opacity: 0.4;
}

.login-view .btn-primary,
.login-view .btn.bg-gradient-primary {
    background: linear-gradient(135deg, 
        #000000 0%, 
        #1a1a1a 25%, 
        #333333 50%, 
        #1a1a1a 75%, 
        #000000 100%) !important;
    border: 2px solid rgba(0, 0, 0, 0.4) !important;
    color: white !important;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-size: 14px !important;
    padding: 18px 36px !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.login-view .btn-primary::before,
.login-view .btn.bg-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.8s;
}

.login-view .btn-primary:hover,
.login-view .btn.bg-gradient-primary:hover {
    background: linear-gradient(135deg, 
        #333333 0%, 
        #1a1a1a 25%, 
        #000000 50%, 
        #1a1a1a 75%, 
        #333333 100%) !important;
    transform: translateY(-6px) scale(1.08) !important;
    box-shadow: 
        0 25px 55px rgba(0, 0, 0, 0.5),
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.login-view .btn-primary:hover::before,
.login-view .btn.bg-gradient-primary:hover::before {
    left: 100%;
}

.login-view .form-control {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(240, 240, 240, 0.95) 100%) !important;
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
    color: #333 !important;
    border-radius: 20px !important;
    padding: 20px 28px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    position: relative;
    z-index: 20;
}

.login-view .form-control:focus {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(0, 0, 0, 0.05) 100%) !important;
    border-color: #000000 !important;
    box-shadow: 
        0 0 0 4px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transform: translateY(-3px) scale(1.03) !important;
    outline: none !important;
}

.login-view .form-control:focus-visible {
    outline: none !important;
}

.login-view .form-label {
    background: linear-gradient(135deg, #e2e5df, #e6eae3) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 10px !important;
}

@keyframes cardFloat {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-view .input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.login-view .input-group-outline {
    position: relative;
}

.login-view .input-group-outline.is-filled .form-label {
    transform: translateY(-25px) scale(0.85);
    color: #e2e5df !important;
    -webkit-text-fill-color: #e2e5df !important;
}

.login-view .alert {
    background: linear-gradient(135deg, 
        rgba(230, 234, 227, 0.95) 0%, 
        rgba(228, 232, 224, 0.95) 100%) !important;
    border: 2px solid rgba(224, 226, 222, 0.6) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 25px rgba(207, 207, 207, 0.2) !important;
}

.login-view .alert-success {
    border-color: rgba(226, 229, 223, 0.8) !important;
    color: #333 !important;
}

.login-view .text-danger {
    color: #d63384 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    margin-top: 8px !important;
    text-shadow: 0 1px 2px rgba(207, 207, 207, 0.1) !important;
}

/* Ensure form fields are interactive */
.login-view input[type="email"],
.login-view input[type="password"] {
    pointer-events: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    cursor: text !important;
    position: relative;
    z-index: 25;
}

.login-view input[type="email"]:focus,
.login-view input[type="password"]:focus {
    outline: none !important;
    border-color: #000000 !important;
}

/* Override any potential conflicts */
.login-view * {
    pointer-events: auto;
}

.login-view .card * {
    pointer-events: auto;
}

@media (max-width: 768px) {
    .login-view .card {
        margin: 20px;
        border-radius: 24px !important;
        max-width: 100%;
    }
    
    .login-view .btn-primary,
    .login-view .btn.bg-gradient-primary {
        padding: 16px 28px !important;
        font-size: 13px !important;
    }
    
    .login-logo .tarraf-logo {
        max-height: 80px;
    }
}