body::before {
    top: -150px;
    left: -150px;
    border-radius: 50%;
    padding: 0;
}

.decorative-element {
    position: fixed;
    z-index: 0;
}

.circle-1, .circle-2, .circle-3, .circle-4 {
    border: 3px solid var(--secondary-color);
    border-radius: 50%;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 15%;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
}

.circle-3 {
    width: 80px;
    height: 80px;
    top: 5%;
    left: 20%;
}

.circle-4 {
    width: 60px;
    height: 60px;
    bottom: 25%;
    right: 15%;
}

.cross-1, .cross-2, .cross-3, .cross-4 {
    background-color: var(--secondary-color);
    clip-path: polygon(20% 0%, 0% 20%, 30% 50%, 0% 80%, 20% 100%, 50% 70%, 80% 100%, 100% 80%, 70% 50%, 100% 20%, 80% 0%, 50% 30%);
}

.cross-1 {
    width: 80px;
    height: 80px;
    top: 30%;
    left: 5%;
}

.cross-2 {
    width: 120px;
    height: 120px;
    bottom: 15%;
    right: 5%;
}

.cross-3 {
    width: 90px;
    height: 90px;
    top: 40%;
    left: 75%;
}

.cross-4 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    left: 35%;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--auth-color);
    color: var(--text-color);
    overflow-y: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

.login-section {
    background-color: var(--background-color);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px var(--shadow-color);
    max-width: 400px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.login-divider {
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

.login-field {
    margin-bottom: 1.5rem;
}

svg:not(:root).svg-inline--fa {
    margin-right: 5px;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    fill: currentColor;
}

.input-icon {
    position: relative;
}

    .input-icon i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary-color);
        opacity: 0.7;
        font-size: 1rem;
    }

.login-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 1.5;
}

    .login-input:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 0.2rem var(--border-focus-color);
    }

.login-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .login-checkbox input {
        appearance: none;
        width: 20px;
        height: 20px;
        background-color: #fff;
        border: 2px solid var(--primary-color);
        border-radius: 4px;
        cursor: pointer;
        margin-right: 0.5rem;
        position: relative;
        transition: all 0.3s ease;
    }

        .login-checkbox input:checked {
            background-color: var(--primary-color);
        }

            .login-checkbox input:checked::before {
                content: '\2714';
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                color: white;
                font-size: 12px;
            }

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1rem;
    cursor: pointer;
}

    .btn-primary:hover {
        background-color: var(--hover-color);
        border-color: var(--hover-color);
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .btn-primary .spinner {
        border: 2px solid #ffffff;
        border-top: 2px solid transparent;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        animation: spin 0.8s linear infinite;
        margin-right: 0.5rem;
        display: none;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.login-links {
    text-align: center;
    margin-top: 1.5rem;
}

.login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-block;
    margin: 0.5rem 0;
}

    .login-link:hover {
        color: var(--secondary-color);
        text-decoration: underline;
    }

.text-danger {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@media (max-width: 576px) {
    .login-section {
        padding: 2rem;
    }

    .login-title {
        font-size: 1.75rem;
    }
}

@media (max-height: 600px) {
    .login-container {
        align-items: flex-start;
    }
}
