/* Login page styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    box-sizing: border-box;
}

.login-container {
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin: 0;
    background: transparent;
    position: relative;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

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

.login-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #b23b3b;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 16px;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3);
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 8px;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3436;
    font-size: 14px;
}

.input-group {
    position: relative;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.input-icon {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #636e72;
    background: #f8f9fa;
    z-index: 1;
}

.login-form .input-group input[type="text"],
.login-form .input-group input[type="password"] {
    width: 100% !important;
    padding: 12px 20px 12px 50px !important;
    border: 1px solid #dfe6e9 !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    position: relative !important;
    margin-left: 0 !important;
    left: 0 !important;
    border-radius: 8px !important;
    height: auto !important;
}

.login-form .input-group input[type="text"]:focus,
.login-form .input-group input[type="password"]:focus {
    width: 100% !important;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2) !important;
    border-color: #6c5ce7 !important;
    outline: none !important;
}

.input-group input:focus {
    outline: none;
    box-shadow: none;
}

.login-form .is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}

.login-button {
    width: 100%;
    padding: 14px;
    background: #6c5ce7;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.login-button:hover {
    background: #5a4acf;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

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

.demo-credentials {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f1f2f6;
    text-align: center;
}

.demo-credentials p {
    margin: 0;
    font-size: 13px;
    color: #7f8c8d;
}

.demo-credentials strong {
    color: #2d3436;
}

@media (max-width: 480px) {
    .login-card {
        padding: 28px 18px;
    }
    
    .login-logo {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
    
    .login-container {
        padding: 0;
    }
}
