* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.company-logo {
    font-size: 36px;
    background: #1e3a5f;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-info h3 {
    color: #1e3a5f;
    font-size: 18px;
    margin: 0 0 3px 0;
    font-weight: 600;
}

.company-info p {
    color: #666;
    font-size: 13px;
    margin: 0;
}

.verification-box {
    background: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    border-top: 4px solid #1e3a5f;
}

h1 {
    color: #1e3a5f;
    font-size: 26px;
    margin-bottom: 5px;
    text-align: center;
    font-weight: 600;
}

.subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 13px;
    letter-spacing: 0.3px;
}

h2 {
    color: #1e3a5f;
    font-size: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
    font-weight: 600;
}

/* Каптча */
.captcha-section {
    margin-bottom: 30px;
}

.captcha-instruction {
    color: #404040;
    margin-bottom: 20px;
    font-size: 13px;
    background: #f9fafb;
    padding: 12px 14px;
    border-left: 3px solid #1e3a5f;
}

.captcha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.captcha-image {
    cursor: pointer;
    border: 3px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f0f0f0;
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    user-select: none;
}

.captcha-image:hover {
    transform: scale(1.05);
    border-color: #1e3a5f;
}

.captcha-image.selected {
    border-color: #4caf50;
    background: #e8f5e9;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

/* Кнопки */
.btn-primary {
    background: #1e3a5f;
    color: white;
    border: none;
    padding: 11px 28px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
    background: #152d48;
    box-shadow: 0 3px 8px rgba(30, 58, 95, 0.2);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #1e3a5f;
    border: 1px solid #d0d0d0;
    padding: 11px 28px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    font-weight: 600;
    margin-top: 15px;
}

.btn-secondary:hover {
    background: #f5f7fa;
    border-color: #1e3a5f;
}

/* Сообщения об ошибках */
.error-section {
    animation: slideIn 0.3s ease;
}

.error-section.hidden {
    display: none;
}

.error-message {
    background: #ffebee;
    border-left: 4px solid #f44336;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.error-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

#errorText {
    color: #c62828;
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: 600;
}

.error-code {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 10px;
}

/* Нижняя информация */
.footer-info {
    text-align: center;
    color: #888;
    margin-top: 20px;
    font-size: 12px;
}

/* Анимация */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивный дизайн */
@media (max-width: 600px) {
    .verification-box {
        padding: 25px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 16px;
    }

    .captcha-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .captcha-image {
        height: 80px;
        font-size: 32px;
    }

    .code-box {
        flex-direction: column;
    }

    .btn-copy {
        margin-left: 0;
        width: 100%;
    }
}
