/*
Template Name: Velzon - Admin & Dashboard Template
Author: Themesbrand
Website: https://themesbrand.com/
Contact: support@themesbrand.com
File: Custom Css File
*/

:is([data-layout=vertical],[data-layout=semibox])[data-sidebar-size=sm] {
    min-height: 100vh;
}

.auth-page-wrapper .auth-page-content {
    padding-bottom: 60px;
    /* position: relative; */
    z-index: 2;
    width: 100%;
    height: 100vh;
}

/* Diagonal Split Login Styles */
.diagonal-split {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.diagonal-split::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent 50%, #f8f9fa 50%);
    z-index: 1;
}

.city-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80') center center;
    background-size: cover;
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    max-width: 400px;
    width: 90%;
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-section img {
    max-width: 150px;
    height: auto;
}

.welcome-text {
    text-align: center;
    margin-bottom: 2rem;
}

.welcome-text h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.welcome-text p {
    color: #666;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(40, 167, 69, 0.3);
}

.footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 1rem;
    background: transparent;
    z-index: 2;
}

.footer p {
    margin: 0;
    color: #666;
    font-size: 0.85rem;
}

/* Password Manager Integration Fixes */
.form-group input[type="password"] {
    position: relative;
    z-index: 1;
}

/* Ensure password manager buttons are positioned correctly */
.form-group .position-relative {
    position: relative !important;
}

/* Fix for Keeper and other password managers */
.form-group input[type="email"],
.form-group input[type="password"] {
    position: relative;
    z-index: 1;
}

/* Ensure the password addon button doesn't interfere with password managers */
.password-addon {
    z-index: 2;
}

/* Custom CSS for the application */

/* Custom styles for the main content area */
.login.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(120deg, transparent 50%, #f8f9fa 50%);
}
.main-content {
    margin-left: 250px;
    padding: 20px;
    min-height: 100vh;
}

/* Custom styles for cards */
.card {
    border: none;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
}

/* Custom button styles */
.login.btn {
    border-radius: 25px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.login.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .diagonal-split::before {
        background: linear-gradient(112.5deg, transparent 35%, #f8f9fa 35%);
    }
    
    .login-card {
        padding: 2rem;
        margin: 1rem;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }
}