:root {
    --primary-color: #9900CC;
    --primary-light: #b54adb;
    --primary-dark: #7a00a3;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin: 0;
    background: linear-gradient(135deg, #f6f8fd 0%, #f1f1f9 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.login-form {
    width: 100%;
    max-width: 400px;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(153, 0, 204, 0.1),
                0 1px 8px rgba(153, 0, 204, 0.1);
    transition: all 0.3s ease;
    margin: auto;
    border: 2px dashed rgba(128, 128, 128, 0.3);
}

.login-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(153, 0, 204, 0.15),
                0 3px 10px rgba(153, 0, 204, 0.1);
}

.logo {
    width: min(180px, 70%);
    height: auto;
    display: block;
    margin: 0 auto clamp(1.5rem, 4vw, 2.5rem) auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

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

.form-control {
    padding: 1rem 1.2rem;
    height: 50px;
    font-size: 1.1rem;
    border: 2px dotted rgba(128, 128, 128, 0.5);
    border-radius: 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    width: 100%;
    margin-top: 25px;
    color: #444;
}

.form-control:focus {
    border-color: var(--primary-color);
    border-style: solid;
    box-shadow: none;
    background: white;
    outline: none;
}

.form-label {
    font-size: 1rem;
    font-weight: 700;
    color: #444;
    position: absolute;
    top: 0;
    left: 0;
}

.form-check {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.form-check-input {
    width: 1.2rem;
    height: 1.2rem;
    margin-left: -2rem;
    border: 2px dotted rgba(128, 128, 128, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-style: solid;
}

.form-check-label {
    font-size: 0.95rem;
    color: #666;
    cursor: pointer;
}

.btn-custom {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border: none;
    color: white;
    padding: 1rem;
    height: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(153, 0, 204, 0.2);
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 0, 204, 0.3);
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-color));
}

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

.alert {
    border: none;
    border-radius: 0;
    font-size: 0.95rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

@keyframes success-login {
    0% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    40% {
        transform: scale(1.05) translateY(0);
        opacity: 1;
    }
    100% {
        transform: scale(0.95) translateY(-30px);
        opacity: 0;
    }
}

.success-animation {
    animation: success-login 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@media (max-width: 480px) {
    .login-form {
        background: white;
        box-shadow: none;
        padding: 1.5rem;
    }

    .login-form:hover {
        transform: none;
        box-shadow: none;
    }

    body {
        background: white;
    }

    .btn-custom {
        padding: 0.7rem;
    }
}

/* Modern autofill styles */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: #333;
}
