/* Login page styles */
body {
    background-color: #fbeaec;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: hidden;
    position: relative;
    font-family: 'Arial', sans-serif;
}

.login-page {
    width: 100%;
    max-width: 1200px;
    position: relative;
    display: flex;
    justify-content: center;
    padding: 20px;
    z-index: 2;
}

.login-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

.login-container h1 {
    color: #bb162a;
    margin-bottom: 15px;
    font-size: 28px;
}

.login-description {
    margin-bottom: 30px;
    color: #666;
}

.sign-in-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    margin-top: 20px;
    background-color: #bb162a;
}

.form-group {
    margin-bottom: 20px;
}

/* Loading animation styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fbeaec;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    flex-direction: column;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.loading-text {
    color: #bb162a;
    font-size: 18px;
    font-weight: 500;
    margin-top: 30px;
    text-align: center;
    width: 100%;
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.dot {
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: #bb162a;
    border-radius: 50%;
    display: block;
    box-shadow: 0 0 5px rgba(187, 22, 42, 0.5);
}

.dot1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: dotAnimation1 1.5s infinite ease-in-out;
}

.dot2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation: dotAnimation2 1.5s infinite ease-in-out;
    animation-delay: 0.375s;
}

.dot3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: dotAnimation1 1.5s infinite ease-in-out;
    animation-delay: 0.75s;
}

.dot4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation: dotAnimation2 1.5s infinite ease-in-out;
    animation-delay: 1.125s;
}

@keyframes dotAnimation1 {
    0%, 100% {
        transform: translateX(-50%) scale(0.6);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 1;
    }
}

@keyframes dotAnimation2 {
    0%, 100% {
        transform: translateY(-50%) scale(0.6);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50%) scale(1.2);
        opacity: 1;
    }
}

/* Адаптивность для анимации загрузки */
@media (max-width: 768px) {
    .loading-spinner {
        width: 70px;
        height: 70px;
    }
    
    .dot {
        width: 14px;
        height: 14px;
    }
    
    .loading-text {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .loading-spinner {
        width: 60px;
        height: 60px;
    }
    
    .dot {
        width: 12px;
        height: 12px;
    }
    
    .loading-text {
        font-size: 15px;
    }
}

/* Error message styles */
.error-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.error-message-content {
    background-color: #bb162a;
    color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.error-header {
    padding: 15px;
    background-color: #111;
    display: flex;
    align-items: center;
}

.error-title {
    font-weight: bold;
    font-size: 16px;
}

.error-text {
    padding: 20px;
    margin: 0;
}

.error-button {
    background-color: #bb162a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin: 0 20px 20px auto;
    display: block;
}

.error-button:hover {
    background-color: #9e1022;
}

/* Decorative elements */
.shape-container {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background-color: #bb162a;
    top: -200px;
    right: -200px;
    opacity: 0.8;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background-color: #bb162a;
    bottom: -150px;
    left: -150px;
    opacity: 0.6;
}

/* Responsiveness */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .shape-1 {
        width: 400px;
        height: 400px;
        top: -150px;
        right: -150px;
    }
    
    .shape-2 {
        width: 300px;
        height: 300px;
        bottom: -100px;
        left: -100px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 25px 15px;
    }
    
    .login-container h1 {
        font-size: 24px;
    }
    
    .shape-1 {
        width: 250px;
        height: 250px;
        top: -70px;
        right: -70px;
    }
    
    .shape-2 {
        width: 200px;
        height: 200px;
        bottom: -70px;
        left: -70px;
    }
}

a {
    color: #bb162a;
} 