/* flame-auth.css */
.flame-auth-container {
    position: relative;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    background: #fff8f0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.auth-device-image {
    position: relative;
    text-align: center;
}

.auth-device-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.auth-inputs input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid #ff6b00;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    font-size: 16px;
    font-family: monospace;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

.auth-lever {
    cursor: pointer;
}

.lever-hand {
    width: 15px;
    height: 70px;
    background: #ff6b00;
    margin: 0 auto;
    border-radius: 8px;
    transition: transform 0.5s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.auth-lever.active .lever-hand {
    transform: rotate(-30deg);
}

.auth-message {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    color: #d63638;
    background: transparent;
    border-radius: 6px;
}

.consent-container-wrapper {
    position: relative;
    max-width: 600px;
    margin: 30px auto;
    border-radius: 10px;
}

.consent-device-image {
    position: relative;
    width: 100%;
    padding-top: 120%;
}

.consent-device-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.consent-items-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Caveat', cursive;
    overflow: hidden;
}

.consent-items-container h2 {
    text-align: center;
    color: #5d4037;
    margin: 0 0 0.5rem 0;
    font-size: 2.4vw;
    word-wrap: break-word;
}

.consent-item {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    width: 100%;
}

.consent-item input {
    width: 1.8vw;
    height: 1.8vw;
    min-width: 18px;
    min-height: 18px;
    margin-right: 0.8rem;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #333;
    border-radius: 3px;
    background: transparent;
    position: relative;
    cursor: pointer;
}


@keyframes drawCheck {
    0% {
        clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
}

.consent-item label {
    font-size: 1.8vw;
    color: #5d4037;
    cursor: pointer;
    line-height: 1.2;
    word-wrap: break-word;
}

#submit-consent {
    display: block;
    width: 100%;
    padding: 0.5rem;
    background: transparent;
    color: #5d4037;
    border: none;
    font-family: 'Caveat', cursive;
    font-size: 2vw;
    cursor: pointer;
    position: relative;
    text-align: center;
    margin-top: 0.5rem;
    transition: transform 0.3s ease;
	text-decoration: underline;
}

#submit-consent:hover {
    transform: scale(1.05);
}

.personal-office {
    max-width: 1000px;
    margin: 30px auto;
    padding: 40px;
    border: 2px solid #ff6b00;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}



@media (max-width: 768px) {
    .submit-button {
        font-size: 16px;
    }
}


/* Адаптивность */
@media (min-width: 850px) {
    .consent-items-container h2 {
        font-size: 2.2rem;
    }
    .consent-item input {
        width: 20px;
        height: 20px;
    }
    .consent-item label {
        font-size: 2rem;
    }
    #submit-consent {
        font-size: 2.2rem;
        padding: 0.8rem;
    }
}

@media (max-width: 768px) {
    .flame-auth-container, .consent-container-wrapper {
        padding: 15px;
    }
    .consent-container-wrapper {
        max-width: 90%;
    }
    .consent-items-container {
        width: 85%;
        padding: 1rem;
    }
    .consent-items-container h2 {
        font-size: 4vw;
    }
    .consent-item input {
        width: 2.5vw;
        height: 2.5vw;
        min-width: 16px;
        min-height: 16px;
    }
    .consent-item label {
        font-size: 3.3vw;
    }
    #submit-consent {
        font-size: 6vw;
        padding: 0.5rem;
		text-decoration: underline;
    }
}


.auth-button {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 15%;
    aspect-ratio: 1;
    background: rgba(255, 107, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.auth-button img {
    max-width: 100%;
    max-height: 100%;
}





.consent-item input:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%; /* Размер галочки относительно квадратика */
    height: 60%;
    border: solid #333;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg); /* Центрируем и поворачиваем */
    animation: drawCheck 0.3s ease forwards;
}

/* New media query for screens up to 360px */
@media (max-width: 450px) {
    .consent-items-container {
        padding: 0.5rem;
    }
    .consent-items-container h2 {
        font-size: 4vw;
        margin-bottom: 0.2rem;
    }
    .consent-item {
        margin: 0.2rem 0;
        padding: 0.3rem;
    }
    .consent-item input {
        width: 3vw;
        height: 3vw;
        min-width: 14px;
        min-height: 14px;
        margin-right: 0.5rem;
    }
    .consent-item label {
        font-size: 3vw;
    }
    #submit-consent {
        font-size: 3vw;
        padding: 0.4rem;
        margin-top: 0.3rem;
		text-decoration: underline;
    }
    .consent-item input:checked::after {
        border-width: 0 1.5px 1.5px 0;
    }
}

/* New media query for screens up to 250px */
@media (max-width: 250px) {
    .consent-items-container {
        padding: 0.3rem;
        max-height: 85%;
        overflow-y: auto;
    }
    .consent-items-container h2 {
        font-size: 12px;
        margin-bottom: 0.1rem;
    }
    .consent-item {
        margin: 0.1rem 0;
        padding: 0.2rem;
    }
    .consent-item input {
        width: 10px;
        height: 10px;
        min-width: 10px;
        min-height: 10px;
        margin-right: 0.3rem;
    }
    .consent-item label {
        font-size: 10px;
    }
    #submit-consent {
        font-size: 10px;
        padding: 0.2rem;
        margin-top: 0.2rem;
		text-decoration: underline;
    }
    .consent-item input:checked::after {
        border-width: 0 1px 1px 0;
    }
}
