:root {
    --main-color: #5f27cd;
    --main-color-hover: #341f97;
    --text-color: #555;
    --subtitle-color: #840ef1;
    --background-opacity: rgba(255, 255, 255, 0.8);
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 00;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("{% static 'myapp/background.jpg' %}") no-repeat center center / cover;
    z-index: -1;
    opacity: 0.8;
}

.container-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.logo-wrapper {
    width: 100%;
    max-width: 400px;
    margin-bottom: 10px;
    margin-left: 35px;
}

.logo {
    width: 100%;
    height: auto;
    border-radius: 10px;
    animation: fadeIn 1s ease-in-out;
}

.container {
    background-color: var(--background-opacity);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0;
    margin-left: 10px;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container h1 {
    font-size: 34px;
    margin-bottom: 05px;
    margin-top: 05px;
    color: var(--text-color);
    animation: slideInLeft 1s ease-in-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.container .subtitle {
    font-size: 20px;
    color: var(--subtitle-color);
    margin-bottom: 30px;
    animation: slideInRight 1s ease-in-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group {
    width: 100%;
    margin-bottom: 02px;
    position: relative;
}

.form-group label {
    position: absolute;
    top: -25px;
    left: 10px;
    background: var(--background-opacity);
    padding: 0 5px;
    font-size: 18px;
    color: var(--text-color);
}

.form-group input {
    width: 92%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 30px;
    font-size: 16px;
    background-color: #f9f9f9;
    animation: fadeIn 1s ease-in-out;
}

.form-group input:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 5px rgba(95, 39, 205, 0.5);
    outline: none;
}

button {
    width: 100%;
    padding: 10px;
    background-color: var(--main-color);
    color: white;
    border: none;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    animation: fadeIn 1s ease-in-out;
}

button:hover {
    background-color: var(--main-color-hover);
}

.error {
    color: red;
    margin-bottom: 20px;
}

.confidential {
    font-size: 12px;
    margin-top: 20px;
    color: var(--text-color);
    animation: fadeIn 1s ease-in-out;
}

.register {
    font-size: 12px;
    margin-top: 20px;
    animation: fadeIn 1s ease-in-out;
}

.register a {
    color: var(--main-color);
    text-decoration: none;
}

.register a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .container-wrapper {
        flex-direction: column;
        padding: 0 20px;
        justify-content: center;
    }
    .logo-wrapper, .container {
        margin-left: 0;
        margin-right: 0;
    }
}
