/* Стили для аутентификации */
.auth-body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: white;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    margin-bottom: 0.5rem;
}

.auth-logo-img {
    width: 150px;
    height: auto;
    object-fit: contain;
}

.auth-header h1 {
    font-size: 1.5rem;
    color: #333;
    margin: 0.5rem 0;
}

.auth-header p {
    color: #666;
    font-size: 0.9rem;
}

/* Капча */
.captcha-section {
    padding: 1.5rem;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: #fafafa;
    margin-bottom: 1.5rem;
}

.captcha-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 1rem 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: 300px;
    height: 300px;
}

.captcha-slot {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
}

.captcha-slot:hover {
    border-color: #007bff;
}

.captcha-piece {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    background: white;
    border: none;
    overflow: hidden;
    position: relative;
}

.captcha-piece img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
    max-width: none !important;
    height: auto !important;
    border-radius: 0 !important;
}

.captcha-piece:active {
    cursor: grabbing;
}

/* Стили для выбранного элемента (тап на мобильных) */
.captcha-piece.selected {
    outline: 3px solid #007bff;
    outline-offset: -3px;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

#check-captcha-btn {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .auth-container {
        padding: 10px;
    }

    .auth-card {
        padding: 1rem;
    }

    .captcha-grid {
        width: 200px;
        height: 200px;
    }

    .captcha-slot {
        width: 100px;
        height: 100px;
    }
}